Class: BigcommerceAPI::Customer

Inherits:
Resource show all
Extended by:
Countable
Defined in:
lib/bigcommerce_api/customer.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#errors

Class Method Summary collapse

Methods included from Countable

count

Methods inherited from Resource

all, #assign_attributes, belongs_to, #changed, #create, #delete, #find_for_reload, has_many, has_one, http_request, #initialize, #mark_dirty!, #parent, #reload, #resource, resource, #resource_url, #save, #update_attributes

Methods inherited from Base

#attributes, clean!, date_adjust, default_options, #initialize, #store, #time, to_rfc2822

Constructor Details

This class inherits a constructor from BigcommerceAPI::Resource

Instance Attribute Details

#addresses_hashObject

Returns the value of attribute addresses_hash.



17
18
19
# File 'lib/bigcommerce_api/customer.rb', line 17

def addresses_hash
  @addresses_hash
end

#companyObject

Returns the value of attribute company.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def company
  @company
end

#customer_group_idObject

Returns the value of attribute customer_group_id.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def customer_group_id
  @customer_group_id
end

#date_createdObject

Returns the value of attribute date_created.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def date_created
  @date_created
end

#date_modifiedObject

Returns the value of attribute date_modified.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def date_modified
  @date_modified
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def last_name
  @last_name
end

#notesObject

Returns the value of attribute notes.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def notes
  @notes
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def phone
  @phone
end

#registration_ip_addressObject

Returns the value of attribute registration_ip_address.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def registration_ip_address
  @registration_ip_address
end

#store_creditObject

Returns the value of attribute store_credit.



4
5
6
# File 'lib/bigcommerce_api/customer.rb', line 4

def store_credit
  @store_credit
end

Class Method Details

.find(id) ⇒ Object



22
23
24
# File 'lib/bigcommerce_api/customer.rb', line 22

def self.find(id)
  super unless id.to_i == 0
end