Class: Rafflesia::BlastSearchBenchmarkGate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastSearchBenchmarkGate
- Defined in:
- lib/rafflesia/sequences/blast_search_benchmark_gate.rb
Constant Summary collapse
- HASH_ATTRS =
{ passed: :passed, reasons: :reasons }.freeze
Instance Attribute Summary collapse
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastSearchBenchmarkGate
constructor
A new instance of BlastSearchBenchmarkGate.
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
#passed ⇒ Object
Returns the value of attribute passed.
13 14 15 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_gate.rb', line 13 def passed @passed end |
#reasons ⇒ Object
Returns the value of attribute reasons.
13 14 15 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_gate.rb', line 13 def reasons @reasons end |