Class: Retab::RunTiming
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::RunTiming
- Defined in:
- lib/retab/workflow_runs/run_timing.rb
Constant Summary collapse
- HASH_ATTRS =
{ created_at: :created_at, started_at: :started_at, completed_at: :completed_at, review_waiting_started_at: :review_waiting_started_at, accumulated_review_waiting_ms: :accumulated_review_waiting_ms, duration_ms: :duration_ms }.freeze
Instance Attribute Summary collapse
-
#accumulated_review_waiting_ms ⇒ Object
Returns the value of attribute accumulated_review_waiting_ms.
-
#completed_at ⇒ Object
Returns the value of attribute completed_at.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#review_waiting_started_at ⇒ Object
Returns the value of attribute review_waiting_started_at.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ RunTiming
constructor
A new instance of RunTiming.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ RunTiming
Returns a new instance of RunTiming.
25 26 27 28 29 30 31 32 33 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 25 def initialize(json) hash = self.class.normalize(json) @created_at = hash[:created_at] @started_at = hash[:started_at] @completed_at = hash[:completed_at] @review_waiting_started_at = hash[:review_waiting_started_at] @accumulated_review_waiting_ms = hash[:accumulated_review_waiting_ms] @duration_ms = hash[:duration_ms] end |
Instance Attribute Details
#accumulated_review_waiting_ms ⇒ Object
Returns the value of attribute accumulated_review_waiting_ms.
17 18 19 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 17 def accumulated_review_waiting_ms @accumulated_review_waiting_ms end |
#completed_at ⇒ Object
Returns the value of attribute completed_at.
17 18 19 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 17 def completed_at @completed_at end |
#created_at ⇒ Object
Returns the value of attribute created_at.
17 18 19 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 17 def created_at @created_at end |
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
17 18 19 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 17 def duration_ms @duration_ms end |
#review_waiting_started_at ⇒ Object
Returns the value of attribute review_waiting_started_at.
17 18 19 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 17 def review_waiting_started_at @review_waiting_started_at end |
#started_at ⇒ Object
Returns the value of attribute started_at.
17 18 19 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 17 def started_at @started_at end |