Method: BAI2::Transaction#initialize

Defined in:
lib/bai2_ruby/transaction.rb

#initialize(type, amount, text, funds_type = nil) ⇒ Transaction

Returns a new instance of Transaction.



14
15
16
17
18
19
# File 'lib/bai2_ruby/transaction.rb', line 14

def initialize(type, amount, text, funds_type = nil)
  @type = type
  @amount = amount.to_f
  @text = text
  @funds_type = funds_type
end