Method: Transflow::Transaction#call
- Defined in:
- lib/transflow/transaction.rb
#call(input, options = {}) ⇒ Object Also known as: []
Call the transaction
Once transaction is called it will call the first step and its result will be passed to the second step and so on.
110 111 112 113 114 115 |
# File 'lib/transflow/transaction.rb', line 110 def call(input, = {}) handler = handler_steps().map(&method(:fn)).reduce(:>>) handler.call(input) rescue Transproc::MalformedInputError => err raise TransactionFailedError.new(self, err.original_error) end |