Class: Rafflesia::SequenceCandidateApplyData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCandidateApplyData
- Defined in:
- lib/rafflesia/sequences/sequence_candidate_apply_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, build: :build, decision_id: :decision_id, decision_object: :decision_object, engine: :engine, selected: :selected, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#build ⇒ Object
Returns the value of attribute build.
-
#decision_id ⇒ Object
Returns the value of attribute decision_id.
-
#decision_object ⇒ Object
Returns the value of attribute decision_object.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#selected ⇒ Object
Returns the value of attribute selected.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCandidateApplyData
constructor
A new instance of SequenceCandidateApplyData.
Constructor Details
#initialize(json) ⇒ SequenceCandidateApplyData
Returns a new instance of SequenceCandidateApplyData.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @build = hash[:build] ? Rafflesia::SequenceCandidateBuildData.new(hash[:build]) : nil @decision_id = hash[:decision_id] @decision_object = hash[:decision_object] ? Rafflesia::ObjectRef.new(hash[:decision_object]) : nil @engine = hash[:engine] @selected = hash[:selected] ? Rafflesia::SequenceCandidateSweepRow.new(hash[:selected]) : nil @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def backend @backend end |
#build ⇒ Object
Returns the value of attribute build.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def build @build end |
#decision_id ⇒ Object
Returns the value of attribute decision_id.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def decision_id @decision_id end |
#decision_object ⇒ Object
Returns the value of attribute decision_object.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def decision_object @decision_object end |
#engine ⇒ Object
Returns the value of attribute engine.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def engine @engine end |
#selected ⇒ Object
Returns the value of attribute selected.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def selected @selected end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
18 19 20 |
# File 'lib/rafflesia/sequences/sequence_candidate_apply_data.rb', line 18 def timeout_ms @timeout_ms end |