Module: Toolx::Core::Operation::Flow::ClassMethods
- Defined in:
- lib/toolx/core/operation/flow.rb
Instance Method Summary collapse
-
#flow ⇒ Operation::Flow::Executor
executor = MyOperation.flow .bind_with(self) .on(success: :dashboard, fail: :show_error) executor.perform(name: 'Alice', age: 20).success? executor.response # => { user:
}.
Instance Method Details
#flow ⇒ Operation::Flow::Executor
executor = MyOperation.flow
.bind_with(self)
.on(success: :dashboard, fail: :show_error)
executor.perform(name: 'Alice', age: 20).success?
executor.response # => { user:
16 |
# File 'lib/toolx/core/operation/flow.rb', line 16 def flow = Executor.new(self) |