Class: Retab::BlockTestOutcomeCounts

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

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) ⇒ 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

#blockedObject

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

#failedObject

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

#passedObject

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