Class: Twilic::Core::Model::KeyRef
- Inherits:
-
Data
- Object
- Data
- Twilic::Core::Model::KeyRef
- Defined in:
- lib/twilic/core/model.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_id ⇒ Object
readonly
Returns the value of attribute is_id.
-
#literal ⇒ Object
readonly
Returns the value of attribute literal.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
80 81 82 |
# File 'lib/twilic/core/model.rb', line 80 def id @id end |
#is_id ⇒ Object (readonly)
Returns the value of attribute is_id
80 81 82 |
# File 'lib/twilic/core/model.rb', line 80 def is_id @is_id end |
#literal ⇒ Object (readonly)
Returns the value of attribute literal
80 81 82 |
# File 'lib/twilic/core/model.rb', line 80 def literal @literal end |
Class Method Details
.id_ref(id) ⇒ Object
85 86 87 |
# File 'lib/twilic/core/model.rb', line 85 def self.id_ref(id) new(literal: "", id: id, is_id: true) end |
.literal(s) ⇒ Object
81 82 83 |
# File 'lib/twilic/core/model.rb', line 81 def self.literal(s) new(literal: s, id: 0, is_id: false) end |