Method: Transaction#reverse

Defined in:
lib/transaction.rb

#reverseObject

Returns a transaction that is the reverse of the current one



15
16
17
# File 'lib/transaction.rb', line 15

def reverse
  Transaction.new(@creditor, @debtor, @amount)
end