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