Class: Retab::BlockTestOutcomeCounts
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::BlockTestOutcomeCounts
- Defined in:
- lib/retab/workflow_test_runs/block_test_outcome_counts.rb
Constant Summary collapse
- HASH_ATTRS =
{ passed: :passed, failed: :failed, blocked: :blocked }.freeze
Instance Attribute Summary collapse
-
#blocked ⇒ Object
Returns the value of attribute blocked.
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#passed ⇒ Object
Returns the value of attribute passed.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ BlockTestOutcomeCounts
constructor
A new instance of BlockTestOutcomeCounts.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ BlockTestOutcomeCounts
Returns a new instance of BlockTestOutcomeCounts.
19 20 21 22 23 24 |
# File 'lib/retab/workflow_test_runs/block_test_outcome_counts.rb', line 19 def initialize(json) hash = self.class.normalize(json) @passed = hash[:passed] @failed = hash[:failed] @blocked = hash[:blocked] end |
Instance Attribute Details
#blocked ⇒ Object
Returns the value of attribute blocked.
14 15 16 |
# File 'lib/retab/workflow_test_runs/block_test_outcome_counts.rb', line 14 def blocked @blocked end |
#failed ⇒ Object
Returns the value of attribute failed.
14 15 16 |
# File 'lib/retab/workflow_test_runs/block_test_outcome_counts.rb', line 14 def failed @failed end |
#passed ⇒ Object
Returns the value of attribute passed.
14 15 16 |
# File 'lib/retab/workflow_test_runs/block_test_outcome_counts.rb', line 14 def passed @passed end |