Class: Rafflesia::ObjectRecordRef

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_pathObject

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_idObject

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_kindObject

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_pathObject

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