Class: Rafflesia::SequenceCandidateVerifyData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#backendObject

Returns the value of attribute backend.



22
23
24
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22

def backend
  @backend
end

#checksObject

Returns the value of attribute checks.



22
23
24
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22

def checks
  @checks
end

#engineObject

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_planObject

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

#inspectObject

Returns the value of attribute inspect.



22
23
24
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22

def inspect
  @inspect
end

#namespaceObject

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_rootObject

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

#passedObject

Returns the value of attribute passed.



22
23
24
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22

def passed
  @passed
end

#probeObject

Returns the value of attribute probe.



22
23
24
# File 'lib/rafflesia/sequences/sequence_candidate_verify_data.rb', line 22

def probe
  @probe
end

#reasonsObject

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_msObject

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