Method: BAI2::Transaction#as_json

Defined in:
lib/bai2_ruby/transaction.rb

#as_jsonObject

rubocop:enable Style/FormatString



39
40
41
42
43
44
45
46
47
48
# File 'lib/bai2_ruby/transaction.rb', line 39

def as_json
  {
    type: @type,
    amount: @amount,
    signed_amount: signed_amount,
    text: @text,
    is_debit: debit?,
    is_credit: credit?
  }
end