Class: Events::WorkflowActivated
- Inherits:
-
Object
- Object
- Events::WorkflowActivated
- Defined in:
- lib/events/workflow_activated.rb
Overview
Emitted after Session#activate_workflow enqueues a workflow’s phantom pair. Subscribers rebroadcast the session’s active skills/workflow so the HUD reflects the new activation.
Constant Summary collapse
- TYPE =
"workflow.activated"
Instance Attribute Summary collapse
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#workflow_name ⇒ Object
readonly
Returns the value of attribute workflow_name.
Instance Method Summary collapse
- #event_name ⇒ Object
-
#initialize(session_id:, workflow_name:) ⇒ WorkflowActivated
constructor
A new instance of WorkflowActivated.
- #to_h ⇒ Object
Constructor Details
#initialize(session_id:, workflow_name:) ⇒ WorkflowActivated
Returns a new instance of WorkflowActivated.
14 15 16 17 |
# File 'lib/events/workflow_activated.rb', line 14 def initialize(session_id:, workflow_name:) @session_id = session_id @workflow_name = workflow_name end |
Instance Attribute Details
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
10 11 12 |
# File 'lib/events/workflow_activated.rb', line 10 def session_id @session_id end |
#workflow_name ⇒ Object (readonly)
Returns the value of attribute workflow_name.
10 11 12 |
# File 'lib/events/workflow_activated.rb', line 10 def workflow_name @workflow_name end |