class Nuvemshop::Customer

Attributes

active[RW]
addresses[RW]
billing_address[RW]
billing_city[RW]
billing_country[RW]
billing_floor[RW]
billing_locality[RW]
billing_name[RW]
billing_number[RW]
billing_phone[RW]
billing_province[RW]
billing_zipcode[RW]
created_at[RW]
default_address[RW]
email[RW]
extra[RW]
id[RW]
identification[RW]
last_order_id[RW]
name[RW]
note[RW]
phone[RW]
total_spent[RW]
total_spent_currency[RW]
updated_at[RW]

Private Instance Methods

after_initialize() click to toggle source
# File lib/nuvemshop/customer.rb, line 10
def after_initialize
  set_attributes
end
set_attributes() click to toggle source
# File lib/nuvemshop/customer.rb, line 14
def set_attributes
  @default_address = Nuvemshop::Order::Address.new(default_address)
  @addresses = addresses&.map { |addr| Order::Address.new(addr) } || []
end