Class: Rafflesia::MapModelAssociationData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelAssociationData
- Defined in:
- lib/rafflesia/artifacts/map_model_association_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ association_id: :association_id, created_at: :created_at, map_id: :map_id, metadata: :metadata, method: :method, model_id: :model_id, source: :source, source_url: :source_url, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#association_id ⇒ Object
Returns the value of attribute association_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#map_id ⇒ Object
Returns the value of attribute map_id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#method ⇒ Object
Returns the value of attribute method.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#source_url ⇒ Object
Returns the value of attribute source_url.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ MapModelAssociationData
constructor
A new instance of MapModelAssociationData.
Constructor Details
#initialize(json) ⇒ MapModelAssociationData
Returns a new instance of MapModelAssociationData.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @association_id = hash[:association_id] @created_at = hash[:created_at] @map_id = hash[:map_id] @metadata = hash[:metadata] || {} @method = hash[:method] @model_id = hash[:model_id] @source = hash[:source] @source_url = hash[:source_url] @structure_id = hash[:structure_id] end |
Instance Attribute Details
#association_id ⇒ Object
Returns the value of attribute association_id.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def association_id @association_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def created_at @created_at end |
#map_id ⇒ Object
Returns the value of attribute map_id.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def map_id @map_id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def @metadata end |
#method ⇒ Object
Returns the value of attribute method.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def method @method end |
#model_id ⇒ Object
Returns the value of attribute model_id.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def model_id @model_id end |
#source ⇒ Object
Returns the value of attribute source.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def source @source end |
#source_url ⇒ Object
Returns the value of attribute source_url.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def source_url @source_url end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
20 21 22 |
# File 'lib/rafflesia/artifacts/map_model_association_data.rb', line 20 def structure_id @structure_id end |