Class: Rafflesia::MapModelAssociateRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelAssociateRequest
- Defined in:
- lib/rafflesia/maps/map_model_associate_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ 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
-
#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) ⇒ MapModelAssociateRequest
constructor
A new instance of MapModelAssociateRequest.
Constructor Details
#initialize(json) ⇒ MapModelAssociateRequest
Returns a new instance of MapModelAssociateRequest.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @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
#map_id ⇒ Object
Returns the value of attribute map_id.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def map_id @map_id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def @metadata end |
#method ⇒ Object
Returns the value of attribute method.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def method @method end |
#model_id ⇒ Object
Returns the value of attribute model_id.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def model_id @model_id end |
#source ⇒ Object
Returns the value of attribute source.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def source @source end |
#source_url ⇒ Object
Returns the value of attribute source_url.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def source_url @source_url end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
18 19 20 |
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18 def structure_id @structure_id end |