Class: Semaph::Commands::StopWorkflowCommand
- Inherits:
-
Object
- Object
- Semaph::Commands::StopWorkflowCommand
- Defined in:
- lib/semaph/commands/stop_workflow_command.rb
Instance Attribute Summary collapse
-
#help ⇒ Object
readonly
Returns the value of attribute help.
Instance Method Summary collapse
- #execute(_whatever) ⇒ Object
-
#initialize(workflow) ⇒ StopWorkflowCommand
constructor
A new instance of StopWorkflowCommand.
Constructor Details
#initialize(workflow) ⇒ StopWorkflowCommand
Returns a new instance of StopWorkflowCommand.
6 7 8 9 |
# File 'lib/semaph/commands/stop_workflow_command.rb', line 6 def initialize(workflow) @workflow = workflow @help = "stop workflow" end |
Instance Attribute Details
#help ⇒ Object (readonly)
Returns the value of attribute help.
4 5 6 |
# File 'lib/semaph/commands/stop_workflow_command.rb', line 4 def help @help end |
Instance Method Details
#execute(_whatever) ⇒ Object
11 12 13 |
# File 'lib/semaph/commands/stop_workflow_command.rb', line 11 def execute(_whatever) @workflow.stop end |