Class: Rafflesia::MapModelFitCandidateSearchData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MapModelFitCandidateSearchData
- Defined in:
- lib/rafflesia/maps/map_model_fit_candidate_search_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_count: :candidate_count, candidates: :candidates, density_geometry: :density_geometry, map_id: :map_id, map_object: :map_object, method: :method, ordering: :ordering, restart_count: :restart_count, search_telemetry: :search_telemetry, seed: :seed, structure_id: :structure_id, structure_object: :structure_object, uses_hidden_references: :uses_hidden_references }.freeze
Instance Attribute Summary collapse
-
#candidate_count ⇒ Object
Returns the value of attribute candidate_count.
-
#candidates ⇒ Object
Returns the value of attribute candidates.
-
#density_geometry ⇒ Object
Returns the value of attribute density_geometry.
-
#map_id ⇒ Object
Returns the value of attribute map_id.
-
#map_object ⇒ Object
Returns the value of attribute map_object.
-
#method ⇒ Object
Returns the value of attribute method.
-
#ordering ⇒ Object
Returns the value of attribute ordering.
-
#restart_count ⇒ Object
Returns the value of attribute restart_count.
-
#search_telemetry ⇒ Object
Returns the value of attribute search_telemetry.
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#structure_object ⇒ Object
Returns the value of attribute structure_object.
-
#uses_hidden_references ⇒ Object
Returns the value of attribute uses_hidden_references.
Instance Method Summary collapse
-
#initialize(json) ⇒ MapModelFitCandidateSearchData
constructor
A new instance of MapModelFitCandidateSearchData.
Constructor Details
#initialize(json) ⇒ MapModelFitCandidateSearchData
Returns a new instance of MapModelFitCandidateSearchData.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @candidate_count = hash[:candidate_count] @candidates = (hash[:candidates] || []).map { |item| item ? Rafflesia::MapModelFitCandidate.new(item) : nil } @density_geometry = hash[:density_geometry] ? Rafflesia::MapModelFitDensityGeometry.new(hash[:density_geometry]) : nil @map_id = hash[:map_id] @map_object = hash[:map_object] ? Rafflesia::ObjectRef.new(hash[:map_object]) : nil @method = hash[:method] @ordering = (hash[:ordering] || []) @restart_count = hash[:restart_count] @search_telemetry = hash[:search_telemetry] ? Rafflesia::MapModelFitSearchTelemetry.new(hash[:search_telemetry]) : nil @seed = hash[:seed] @structure_id = hash[:structure_id] @structure_object = hash[:structure_object] ? Rafflesia::ObjectRef.new(hash[:structure_object]) : nil @uses_hidden_references = hash[:uses_hidden_references] end |
Instance Attribute Details
#candidate_count ⇒ Object
Returns the value of attribute candidate_count.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def candidate_count @candidate_count end |
#candidates ⇒ Object
Returns the value of attribute candidates.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def candidates @candidates end |
#density_geometry ⇒ Object
Returns the value of attribute density_geometry.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def density_geometry @density_geometry end |
#map_id ⇒ Object
Returns the value of attribute map_id.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def map_id @map_id end |
#map_object ⇒ Object
Returns the value of attribute map_object.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def map_object @map_object end |
#method ⇒ Object
Returns the value of attribute method.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def method @method end |
#ordering ⇒ Object
Returns the value of attribute ordering.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def ordering @ordering end |
#restart_count ⇒ Object
Returns the value of attribute restart_count.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def restart_count @restart_count end |
#search_telemetry ⇒ Object
Returns the value of attribute search_telemetry.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def search_telemetry @search_telemetry end |
#seed ⇒ Object
Returns the value of attribute seed.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def seed @seed end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def structure_id @structure_id end |
#structure_object ⇒ Object
Returns the value of attribute structure_object.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def structure_object @structure_object end |
#uses_hidden_references ⇒ Object
Returns the value of attribute uses_hidden_references.
24 25 26 |
# File 'lib/rafflesia/maps/map_model_fit_candidate_search_data.rb', line 24 def uses_hidden_references @uses_hidden_references end |