Module: Zenaton::Traits::Zenatonable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Zenaton::Tasks::Wait, Workflows::Version
- Defined in:
- lib/zenaton/traits/zenatonable.rb
Overview
Module to be included in tasks and workflows
Instance Method Summary collapse
-
#dispatch ⇒ Object
Sends self as the single job to be dispatched to the engine and returns the result.
-
#execute ⇒ Object
Sends self as the single job to be executed to the engine and returns the result.
Instance Method Details
#dispatch ⇒ Object
Sends self as the single job to be dispatched to the engine and returns the result
21 22 23 |
# File 'lib/zenaton/traits/zenatonable.rb', line 21 def dispatch Engine.instance.dispatch([self]) end |
#execute ⇒ Object
Sends self as the single job to be executed to the engine and returns the result
15 16 17 |
# File 'lib/zenaton/traits/zenatonable.rb', line 15 def execute Engine.instance.execute([self])[0] end |