class TigerPayment::Customer

Attributes

account_holder_type[R]
account_type[R]
address_1[R]
address_2[R]
cc_bin[R]
cc_exp[R]
cc_hash[R]
cc_number[R]
cell_phone[R]
check_aba[R]
check_account[R]
check_hash[R]
check_name[R]
city[R]
company[R]
country[R]
customer_vault_id[R]
customertaxid[R]
email[R]
fax[R]
first_name[R]
id[R]
last_name[R]
phone[R]
postal_code[R]
processor_id[R]
sec_code[R]
shipping[R]
shipping_address_1[R]
shipping_address_2[R]
shipping_carrier[R]
shipping_city[R]
shipping_company[R]
shipping_country[R]
shipping_date[R]
shipping_email[R]
shipping_first_name[R]
shipping_last_name[R]
shipping_postal_code[R]
shipping_state[R]
state[R]
tracking_number[R]
website[R]

Public Class Methods

new(params = {}) click to toggle source
# File lib/tiger-payment/customer.rb, line 47
def initialize(params = {})
  params.each_pair do |k,v|
    if v == [{}]
      instance_variable_set('@'+k, nil)
    else
      value ||= v.size == 1 ? v.first : v
      instance_variable_set('@'+k, value)
    end
  end
end