Class: Rafflesia::SequenceCandidateSweepData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCandidateSweepData
- Defined in:
- lib/rafflesia/sequences/sequence_candidate_sweep_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, case_timeout_ms: :case_timeout_ms, decision: :decision, decision_object: :decision_object, engine: :engine, gates: :gates, min_recall_at_k: :min_recall_at_k, object_store_root: :object_store_root, objective: :objective, published_selected: :published_selected, row_count: :row_count, rows: :rows, selected: :selected, selected_index: :selected_index, sweep_object: :sweep_object, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#case_timeout_ms ⇒ Object
Returns the value of attribute case_timeout_ms.
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#decision_object ⇒ Object
Returns the value of attribute decision_object.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#gates ⇒ Object
Returns the value of attribute gates.
-
#min_recall_at_k ⇒ Object
Returns the value of attribute min_recall_at_k.
-
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
-
#objective ⇒ Object
Returns the value of attribute objective.
-
#published_selected ⇒ Object
Returns the value of attribute published_selected.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#selected ⇒ Object
Returns the value of attribute selected.
-
#selected_index ⇒ Object
Returns the value of attribute selected_index.
-
#sweep_object ⇒ Object
Returns the value of attribute sweep_object.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCandidateSweepData
constructor
A new instance of SequenceCandidateSweepData.
Constructor Details
#initialize(json) ⇒ SequenceCandidateSweepData
Returns a new instance of SequenceCandidateSweepData.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @case_timeout_ms = hash[:case_timeout_ms] @decision = hash[:decision] ? Rafflesia::SequenceCandidateDecision.new(hash[:decision]) : nil @decision_object = hash[:decision_object] ? Rafflesia::ObjectRef.new(hash[:decision_object]) : nil @engine = hash[:engine] @gates = hash[:gates] ? Rafflesia::SequenceCandidateGates.new(hash[:gates]) : nil @min_recall_at_k = hash[:min_recall_at_k] @object_store_root = hash[:object_store_root] @objective = hash[:objective] @published_selected = hash[:published_selected] ? Rafflesia::SequenceCandidateBuildData.new(hash[:published_selected]) : nil @row_count = hash[:row_count] @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::SequenceCandidateSweepRow.new(item) : nil } @selected = hash[:selected] ? Rafflesia::SequenceCandidateSweepRow.new(hash[:selected]) : nil @selected_index = hash[:selected_index] @sweep_object = hash[:sweep_object] ? Rafflesia::ObjectRef.new(hash[:sweep_object]) : nil @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def backend @backend end |
#case_timeout_ms ⇒ Object
Returns the value of attribute case_timeout_ms.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def case_timeout_ms @case_timeout_ms end |
#decision ⇒ Object
Returns the value of attribute decision.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def decision @decision end |
#decision_object ⇒ Object
Returns the value of attribute decision_object.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def decision_object @decision_object end |
#engine ⇒ Object
Returns the value of attribute engine.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def engine @engine end |
#gates ⇒ Object
Returns the value of attribute gates.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def gates @gates end |
#min_recall_at_k ⇒ Object
Returns the value of attribute min_recall_at_k.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def min_recall_at_k @min_recall_at_k end |
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def object_store_root @object_store_root end |
#objective ⇒ Object
Returns the value of attribute objective.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def objective @objective end |
#published_selected ⇒ Object
Returns the value of attribute published_selected.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def published_selected @published_selected end |
#row_count ⇒ Object
Returns the value of attribute row_count.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def row_count @row_count end |
#rows ⇒ Object
Returns the value of attribute rows.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def rows @rows end |
#selected ⇒ Object
Returns the value of attribute selected.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def selected @selected end |
#selected_index ⇒ Object
Returns the value of attribute selected_index.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def selected_index @selected_index end |
#sweep_object ⇒ Object
Returns the value of attribute sweep_object.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def sweep_object @sweep_object end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
27 28 29 |
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_data.rb', line 27 def timeout_ms @timeout_ms end |