class WireClient::Account

Attributes

account_number[RW]
address_line[RW]
bic[RW]
charge_bearer[RW]
city[RW]
clear_system_code[RW]
country[RW]
country_subdivision[RW]
currency[RW]
iban[RW]
identifier[RW]
name[RW]
postal_code[RW]
schema_code[RW]
wire_routing_number[RW]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/wire_client/account/account.rb, line 38
def initialize(attributes = {})
  attributes.each do |name, value|
    public_send("#{name}=", value)
  end

  @currency ||= 'USD'
  @postal_code ||= 'NA'
  @address_line ||= 'NA'
  @city ||= 'NA'
  @country ||= 'US'
  @country_subdivision ||= 'MA' if self.country == 'US'
  @schema_code ||= 'CUST'
  @clear_system_code ||= 'USABA'
  custom_defaults if self.respond_to? :custom_defaults
end