Class: Rafflesia::MapModelFitScoreRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_score_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  map_id: :map_id,
  max_voxel_bytes: :max_voxel_bytes,
  structure_id: :structure_id,
  threshold: :threshold
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitScoreRequest

Returns a new instance of MapModelFitScoreRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/maps/map_model_fit_score_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @map_id = hash[:map_id]
  @max_voxel_bytes = hash[:max_voxel_bytes]
  @structure_id = hash[:structure_id]
  @threshold = hash[:threshold]
end

Instance Attribute Details

#map_idObject

Returns the value of attribute map_id.



15
16
17
# File 'lib/rafflesia/maps/map_model_fit_score_request.rb', line 15

def map_id
  @map_id
end

#max_voxel_bytesObject

Returns the value of attribute max_voxel_bytes.



15
16
17
# File 'lib/rafflesia/maps/map_model_fit_score_request.rb', line 15

def max_voxel_bytes
  @max_voxel_bytes
end

#structure_idObject

Returns the value of attribute structure_id.



15
16
17
# File 'lib/rafflesia/maps/map_model_fit_score_request.rb', line 15

def structure_id
  @structure_id
end

#thresholdObject

Returns the value of attribute threshold.



15
16
17
# File 'lib/rafflesia/maps/map_model_fit_score_request.rb', line 15

def threshold
  @threshold
end