Module: Sem4r::AccountAccountExtension

Included in:
Account
Defined in:
lib/sem4r/v13_account/account_account_extension.rb

Instance Method Summary collapse

Instance Method Details

#client_accounts(refresh = false) ⇒ Object Also known as: clients

Client



66
67
68
69
# File 'lib/sem4r/v13_account/account_account_extension.rb', line 66

def client_accounts(refresh = false)
  _client_accounts unless @accounts and !refresh
  @accounts
end

#currency_codeObject



40
41
42
43
# File 'lib/sem4r/v13_account/account_account_extension.rb', line 40

def currency_code
  _info unless @currency_code
  @currency_code
end

#customer_idObject



45
46
47
48
# File 'lib/sem4r/v13_account/account_account_extension.rb', line 45

def customer_id
  _info unless @customer_id
  @customer_id
end

#p_client_accounts(refresh = false) ⇒ Object Also known as: p_clients



71
72
73
74
75
76
77
# File 'lib/sem4r/v13_account/account_account_extension.rb', line 71

def p_client_accounts(refresh = false)
  client_accounts(refresh)
  @accounts.each do ||
    puts .to_s
  end
  self
end

#p_infoObject

Info



32
33
34
35
36
37
38
# File 'lib/sem4r/v13_account/account_account_extension.rb', line 32

def p_info
  _info unless @currency_code
  puts "currency_code: #{@currency_code}"
  puts "customer_id: #{@customer_id}"
  puts "email: #{@credentials.client_email}" if @credentials.client_email
  puts @billing_address
end