Class: Rafflesia::MapModelFitCandidateApplyRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelFitCandidateApplyRequest
- Defined in:
- lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate: :candidate, map_id: :map_id, max_voxel_bytes: :max_voxel_bytes, structure_id: :structure_id, target_id: :target_id, threshold: :threshold }.freeze
Instance Attribute Summary collapse
-
#candidate ⇒ Object
Returns the value of attribute candidate.
-
#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.
-
#target_id ⇒ Object
Returns the value of attribute target_id.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(json) ⇒ MapModelFitCandidateApplyRequest
constructor
A new instance of MapModelFitCandidateApplyRequest.
Constructor Details
#initialize(json) ⇒ MapModelFitCandidateApplyRequest
Returns a new instance of MapModelFitCandidateApplyRequest.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @candidate = hash[:candidate] ? Rafflesia::MapModelFitCandidate.new(hash[:candidate]) : nil @map_id = hash[:map_id] @max_voxel_bytes = hash[:max_voxel_bytes] @structure_id = hash[:structure_id] @target_id = hash[:target_id] @threshold = hash[:threshold] end |
Instance Attribute Details
#candidate ⇒ Object
Returns the value of attribute candidate.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17 def candidate @candidate end |
#map_id ⇒ Object
Returns the value of attribute map_id.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17 def map_id @map_id end |
#max_voxel_bytes ⇒ Object
Returns the value of attribute max_voxel_bytes.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17 def max_voxel_bytes @max_voxel_bytes end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17 def structure_id @structure_id end |
#target_id ⇒ Object
Returns the value of attribute target_id.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17 def target_id @target_id end |
#threshold ⇒ Object
Returns the value of attribute threshold.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_apply_request.rb', line 17 def threshold @threshold end |