class OFX::Data::Serialization::Banking::BankAccount

Constants

ACCT_TYPES

Public Instance Methods

acct_type(type) click to toggle source
# File lib/ofx/data/serialization/banking/bank_account.rb, line 33
def acct_type(type)
  ACCT_TYPES.fetch(type)
end
default_registry_entry_args() click to toggle source
# File lib/ofx/data/serialization/banking/bank_account.rb, line 17
def default_registry_entry_args
  [:"banking.bank_account", nil]
end
serialize(bank_account, builder) click to toggle source
# File lib/ofx/data/serialization/banking/bank_account.rb, line 21
def serialize(bank_account, builder)
  builder.BANKID bank_account.bank_id
  if bank_account.branch_id != ""
    builder.BRANCHID bank_account.branch_id
  end
  builder.ACCTID bank_account.account_id
  builder.ACCTTYPE acct_type(bank_account.account_type)
  if bank_account.account_key != ""
    builder.ACCTKEY bank_account.account_key
  end
end