Class: Retab::LatestBlockTestRunSummary
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::LatestBlockTestRunSummary
- 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
-
#assertions_failed ⇒ Object
Returns the value of attribute assertions_failed.
-
#assertions_passed ⇒ Object
Returns the value of attribute assertions_passed.
-
#block_config_fingerprint ⇒ Object
Returns the value of attribute block_config_fingerprint.
-
#blocked_assertions ⇒ Object
Returns the value of attribute blocked_assertions.
-
#completed_at ⇒ Object
Returns the value of attribute completed_at.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#run_record_id ⇒ Object
Returns the value of attribute run_record_id.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#workflow_draft_fingerprint ⇒ Object
Returns the value of attribute workflow_draft_fingerprint.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ LatestBlockTestRunSummary
constructor
A new instance of LatestBlockTestRunSummary.
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_failed ⇒ Object
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_passed ⇒ Object
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_fingerprint ⇒ Object
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_assertions ⇒ Object
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_at ⇒ Object
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_ms ⇒ Object
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 |
#outcome ⇒ Object
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_id ⇒ Object
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_at ⇒ Object
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 |
#status ⇒ Object
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_fingerprint ⇒ Object
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 |