Class: Retab::BlockTestBatchExecutionCounts

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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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_countsObject

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

#outcomeObject

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