Class: DurableFlow::WorkflowTimeline::Item
- Inherits:
-
Struct
- Object
- Struct
- DurableFlow::WorkflowTimeline::Item
- Defined in:
- lib/durable_flow/workflow_timeline.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
Returns the value of attribute record.
-
#step ⇒ Object
Returns the value of attribute step.
-
#step_id ⇒ Object
Returns the value of attribute step_id.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#record ⇒ Object
Returns the value of attribute record
12 13 14 |
# File 'lib/durable_flow/workflow_timeline.rb', line 12 def record @record end |
#step ⇒ Object
Returns the value of attribute step
12 13 14 |
# File 'lib/durable_flow/workflow_timeline.rb', line 12 def step @step end |
#step_id ⇒ Object
Returns the value of attribute step_id
12 13 14 |
# File 'lib/durable_flow/workflow_timeline.rb', line 12 def step_id @step_id end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
12 13 14 |
# File 'lib/durable_flow/workflow_timeline.rb', line 12 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type
12 13 14 |
# File 'lib/durable_flow/workflow_timeline.rb', line 12 def type @type end |
Instance Method Details
#id ⇒ Object
13 14 15 |
# File 'lib/durable_flow/workflow_timeline.rb', line 13 def id "#{type}-#{record.id}" end |
#name ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/durable_flow/workflow_timeline.rb', line 17 def name case type when :step record.name when :wait record.event_name when :event record.name when :log record. end end |
#run_level? ⇒ Boolean
34 35 36 |
# File 'lib/durable_flow/workflow_timeline.rb', line 34 def run_level? step_id.nil? end |
#status ⇒ Object
30 31 32 |
# File 'lib/durable_flow/workflow_timeline.rb', line 30 def status record.status if record.respond_to?(:status) end |