Class: Zenaton::Interfaces::Workflow Abstract
- Defined in:
- lib/zenaton/interfaces/workflow.rb
Overview
This class is abstract.
Subclass and override #handle to implement a custom Workflow
Direct Known Subclasses
Instance Method Summary collapse
-
#handle ⇒ Object
Method called to run the workflow.
-
#id ⇒ String, ...
(Optional) Implement this method if you want to use custom IDs for your workflows.
Instance Method Details
#handle ⇒ Object
Method called to run the workflow
10 11 12 13 |
# File 'lib/zenaton/interfaces/workflow.rb', line 10 def handle raise NotImplemented, "Your workflow does not implement the `handle' method" end |
#id ⇒ String, ...
(Optional) Implement this method if you want to use custom IDs for your workflows.
18 19 20 |
# File 'lib/zenaton/interfaces/workflow.rb', line 18 def id nil end |