Class: Rafflesia::MapModelFitCandidate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelFitCandidate
- Defined in:
- lib/rafflesia/maps/map_model_fit_candidate.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_id: :candidate_id, measurements: :measurements, order_index: :order_index, parameters: :parameters, search_restart_index: :search_restart_index, search_stage: :search_stage }.freeze
Instance Attribute Summary collapse
-
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
-
#measurements ⇒ Object
Returns the value of attribute measurements.
-
#order_index ⇒ Object
Returns the value of attribute order_index.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#search_restart_index ⇒ Object
Returns the value of attribute search_restart_index.
-
#search_stage ⇒ Object
Returns the value of attribute search_stage.
Instance Method Summary collapse
-
#initialize(json) ⇒ MapModelFitCandidate
constructor
A new instance of MapModelFitCandidate.
Constructor Details
#initialize(json) ⇒ MapModelFitCandidate
Returns a new instance of MapModelFitCandidate.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @candidate_id = hash[:candidate_id] @measurements = hash[:measurements] ? Rafflesia::MapModelFitCandidateMeasurements.new(hash[:measurements]) : nil @order_index = hash[:order_index] @parameters = hash[:parameters] ? Rafflesia::MapModelFitCyclicParameters.new(hash[:parameters]) : nil @search_restart_index = hash[:search_restart_index] @search_stage = hash[:search_stage] end |
Instance Attribute Details
#candidate_id ⇒ Object
Returns the value of attribute candidate_id.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 17 def candidate_id @candidate_id end |
#measurements ⇒ Object
Returns the value of attribute measurements.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 17 def measurements @measurements end |
#order_index ⇒ Object
Returns the value of attribute order_index.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 17 def order_index @order_index end |
#parameters ⇒ Object
Returns the value of attribute parameters.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 17 def parameters @parameters end |
#search_restart_index ⇒ Object
Returns the value of attribute search_restart_index.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 17 def search_restart_index @search_restart_index end |
#search_stage ⇒ Object
Returns the value of attribute search_stage.
17 18 19 |
# File 'lib/rafflesia/maps/map_model_fit_candidate.rb', line 17 def search_stage @search_stage end |