class Cmxl::Fields::AccountBalance
Public Instance Methods
Source
# File lib/cmxl/fields/account_balance.rb, line 19 def amount to_amount(data['amount']) end
Source
# File lib/cmxl/fields/account_balance.rb, line 27 def amount_in_cents to_amount_in_cents(data['amount']) end
Source
# File lib/cmxl/fields/account_balance.rb, line 11 def credit? data['funds_code'].to_s.casecmp('C').zero? end
Source
# File lib/cmxl/fields/account_balance.rb, line 31 def to_h super.merge( 'date' => date, 'funds_code' => funds_code, 'credit' => credit?, 'debit' => debit?, 'currency' => currency, 'amount' => amount, 'amount_in_cents' => amount_in_cents, 'sign' => sign ) end
Calls superclass method
Cmxl::Field#to_h