Class: Rafflesia::SequenceCandidateVerifyData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCandidateVerifyData
- Defined in:
- lib/rafflesia/sequences/sequence_candidate_verify_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, checks: :checks, engine: :engine, gc_plan: :gc_plan, inspect: :inspect, namespace: :namespace, object_store_root: :object_store_root, passed: :passed, probe: :probe, reasons: :reasons, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#gc_plan ⇒ Object
Returns the value of attribute gc_plan.
-
#inspect ⇒ Object
Returns the value of attribute inspect.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#probe ⇒ Object
Returns the value of attribute probe.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCandidateVerifyData
constructor
A new instance of SequenceCandidateVerifyData.
Constructor Details
#initialize(json) ⇒ SequenceCandidateVerifyData
Returns a new instance of SequenceCandidateVerifyData.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @checks = (hash[:checks] || []).map { |item| item ? Rafflesia::SequenceCandidateVerifyCheck.new(item) : nil } @engine = hash[:engine] @gc_plan = hash[:gc_plan] ? Rafflesia::SequenceCandidateGcPlanData.new(hash[:gc_plan]) : nil @inspect = hash[:inspect] ? Rafflesia::SequenceCandidateInspectData.new(hash[:inspect]) : nil @namespace = hash[:namespace] @object_store_root = hash[:object_store_root] @passed = hash[:passed] @probe = hash[:probe] ? Rafflesia::SequenceCandidateSearchData.new(hash[:probe]) : nil @reasons = (hash[:reasons] || []) @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def backend @backend end |
#checks ⇒ Object
Returns the value of attribute checks.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def checks @checks end |
#engine ⇒ Object
Returns the value of attribute engine.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def engine @engine end |
#gc_plan ⇒ Object
Returns the value of attribute gc_plan.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def gc_plan @gc_plan end |
#inspect ⇒ Object
Returns the value of attribute inspect.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def inspect @inspect end |
#namespace ⇒ Object
Returns the value of attribute namespace.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def namespace @namespace end |
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def object_store_root @object_store_root end |
#passed ⇒ Object
Returns the value of attribute passed.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def passed @passed end |
#probe ⇒ Object
Returns the value of attribute probe.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def probe @probe end |
#reasons ⇒ Object
Returns the value of attribute reasons.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def reasons @reasons end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
22 23 24 |
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22 def timeout_ms @timeout_ms end |