Class: Rafflesia::BlastSearchBenchmarkGate

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/blast_search_benchmark_gate.rb

Constant Summary collapse

HASH_ATTRS =
{
  passed: :passed,
  reasons: :reasons
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BlastSearchBenchmarkGate

Returns a new instance of BlastSearchBenchmarkGate.



17
18
19
20
21
22
# File 'lib/rafflesia/sequences/blast_search_benchmark_gate.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @passed = hash[:passed]
  @reasons = (hash[:reasons] || [])
end

Instance Attribute Details

#passedObject

Returns the value of attribute passed.



13
14
15
# File 'lib/rafflesia/sequences/blast_search_benchmark_gate.rb', line 13

def passed
  @passed
end

#reasonsObject

Returns the value of attribute reasons.



13
14
15
# File 'lib/rafflesia/sequences/blast_search_benchmark_gate.rb', line 13

def reasons
  @reasons
end