Class: Rafflesia::MapModelAssociateRequest

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

Instance Method Summary collapse

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_idObject

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

#metadataObject

Returns the value of attribute metadata.



18
19
20
# File 'lib/rafflesia/maps/map_model_associate_request.rb', line 18

def 
  @metadata
end

#methodObject

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_idObject

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

#sourceObject

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_urlObject

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_idObject

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