Class: Rafflesia::ObjectRecordRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectRecordRef
- Defined in:
- lib/rafflesia/objects/object_record_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ field_path: :field_path, record_id: :record_id, record_kind: :record_kind, record_path: :record_path }.freeze
Instance Attribute Summary collapse
-
#field_path ⇒ Object
Returns the value of attribute field_path.
-
#record_id ⇒ Object
Returns the value of attribute record_id.
-
#record_kind ⇒ Object
Returns the value of attribute record_kind.
-
#record_path ⇒ Object
Returns the value of attribute record_path.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectRecordRef
constructor
A new instance of ObjectRecordRef.
Constructor Details
#initialize(json) ⇒ ObjectRecordRef
Returns a new instance of ObjectRecordRef.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/objects/object_record_ref.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @field_path = hash[:field_path] @record_id = hash[:record_id] @record_kind = hash[:record_kind] @record_path = hash[:record_path] end |
Instance Attribute Details
#field_path ⇒ Object
Returns the value of attribute field_path.
15 16 17 |
# File 'lib/rafflesia/objects/object_record_ref.rb', line 15 def field_path @field_path end |
#record_id ⇒ Object
Returns the value of attribute record_id.
15 16 17 |
# File 'lib/rafflesia/objects/object_record_ref.rb', line 15 def record_id @record_id end |
#record_kind ⇒ Object
Returns the value of attribute record_kind.
15 16 17 |
# File 'lib/rafflesia/objects/object_record_ref.rb', line 15 def record_kind @record_kind end |
#record_path ⇒ Object
Returns the value of attribute record_path.
15 16 17 |
# File 'lib/rafflesia/objects/object_record_ref.rb', line 15 def record_path @record_path end |