Class: Rafflesia::MapModelFitScoreRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelFitScoreRequest
- 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
-
#map_id ⇒ Object
Returns the value of attribute map_id.
-
#max_voxel_bytes ⇒ Object
Returns the value of attribute max_voxel_bytes.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(json) ⇒ MapModelFitScoreRequest
constructor
A new instance of MapModelFitScoreRequest.
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_id ⇒ Object
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_bytes ⇒ Object
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_id ⇒ Object
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 |
#threshold ⇒ Object
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 |