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 }.freeze
Instance Attribute Summary collapse
-
#completed_at ⇒ Object
Returns the value of attribute completed_at.
-
#created_at ⇒ Object
Returns the value of attribute created_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
deep_symbolize, #inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ RunTiming
Returns a new instance of RunTiming.
20 21 22 23 24 25 26 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 20 def initialize(json) super() hash = self.class.normalize(json) @created_at = hash[:created_at] @started_at = hash[:started_at] @completed_at = hash[:completed_at] end |
Instance Attribute Details
#completed_at ⇒ Object
Returns the value of attribute completed_at.
14 15 16 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 14 def completed_at @completed_at end |
#created_at ⇒ Object
Returns the value of attribute created_at.
14 15 16 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 14 def created_at @created_at end |
#started_at ⇒ Object
Returns the value of attribute started_at.
14 15 16 |
# File 'lib/retab/workflow_runs/run_timing.rb', line 14 def started_at @started_at end |