Class: Retab::LatestBlockTestRunSummary

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_tests/latest_block_test_run_summary.rb

Constant Summary collapse

HASH_ATTRS =
{
  run_record_id: :run_record_id,
  status: :status,
  outcome: :outcome,
  started_at: :started_at,
  completed_at: :completed_at,
  duration_ms: :duration_ms,
  workflow_draft_fingerprint: :workflow_draft_fingerprint,
  block_config_fingerprint: :block_config_fingerprint,
  assertions_passed: :assertions_passed,
  assertions_failed: :assertions_failed,
  blocked_assertions: :blocked_assertions
}.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) ⇒ LatestBlockTestRunSummary

Returns a new instance of LatestBlockTestRunSummary.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 35

def initialize(json)
  hash = self.class.normalize(json)
  @run_record_id = hash[:run_record_id]
  @status = hash[:status]
  @outcome = hash[:outcome]
  @started_at = hash[:started_at]
  @completed_at = hash[:completed_at]
  @duration_ms = hash[:duration_ms]
  @workflow_draft_fingerprint = hash[:workflow_draft_fingerprint]
  @block_config_fingerprint = hash[:block_config_fingerprint]
  @assertions_passed = hash[:assertions_passed]
  @assertions_failed = hash[:assertions_failed]
  @blocked_assertions = hash[:blocked_assertions]
end

Instance Attribute Details

#assertions_failedObject

Returns the value of attribute assertions_failed.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def assertions_failed
  @assertions_failed
end

#assertions_passedObject

Returns the value of attribute assertions_passed.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def assertions_passed
  @assertions_passed
end

#block_config_fingerprintObject

Returns the value of attribute block_config_fingerprint.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def block_config_fingerprint
  @block_config_fingerprint
end

#blocked_assertionsObject

Returns the value of attribute blocked_assertions.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def blocked_assertions
  @blocked_assertions
end

#completed_atObject

Returns the value of attribute completed_at.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def completed_at
  @completed_at
end

#duration_msObject

Returns the value of attribute duration_ms.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def duration_ms
  @duration_ms
end

#outcomeObject

Returns the value of attribute outcome.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def outcome
  @outcome
end

#run_record_idObject

Returns the value of attribute run_record_id.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def run_record_id
  @run_record_id
end

#started_atObject

Returns the value of attribute started_at.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def started_at
  @started_at
end

#statusObject

Returns the value of attribute status.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def status
  @status
end

#workflow_draft_fingerprintObject

Returns the value of attribute workflow_draft_fingerprint.



22
23
24
# File 'lib/retab/workflow_tests/latest_block_test_run_summary.rb', line 22

def workflow_draft_fingerprint
  @workflow_draft_fingerprint
end