Class: Conductor::Worker::Events::WorkflowEvent
- Inherits:
-
ConductorEvent
- Object
- ConductorEvent
- Conductor::Worker::Events::WorkflowEvent
- Defined in:
- lib/conductor/worker/events/workflow_events.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
-
#workflow_type ⇒ Object
readonly
Returns the value of attribute workflow_type.
Attributes inherited from ConductorEvent
Instance Method Summary collapse
-
#initialize(workflow_type:, version: nil) ⇒ WorkflowEvent
constructor
A new instance of WorkflowEvent.
- #to_h ⇒ Object
Constructor Details
#initialize(workflow_type:, version: nil) ⇒ WorkflowEvent
Returns a new instance of WorkflowEvent.
11 12 13 14 15 |
# File 'lib/conductor/worker/events/workflow_events.rb', line 11 def initialize(workflow_type:, version: nil) super() @workflow_type = workflow_type @version = version end |
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
9 10 11 |
# File 'lib/conductor/worker/events/workflow_events.rb', line 9 def version @version end |
#workflow_type ⇒ Object (readonly)
Returns the value of attribute workflow_type.
9 10 11 |
# File 'lib/conductor/worker/events/workflow_events.rb', line 9 def workflow_type @workflow_type end |
Instance Method Details
#to_h ⇒ Object
17 18 19 |
# File 'lib/conductor/worker/events/workflow_events.rb', line 17 def to_h super.merge(workflow_type: @workflow_type, version: @version) end |