Class: BigcommerceAPI::Customer
- Extended by:
- Countable
- Defined in:
- lib/bigcommerce_api/customer.rb
Instance Attribute Summary collapse
-
#addresses_hash ⇒ Object
Returns the value of attribute addresses_hash.
-
#company ⇒ Object
Returns the value of attribute company.
-
#customer_group_id ⇒ Object
Returns the value of attribute customer_group_id.
-
#date_created ⇒ Object
Returns the value of attribute date_created.
-
#date_modified ⇒ Object
Returns the value of attribute date_modified.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#registration_ip_address ⇒ Object
Returns the value of attribute registration_ip_address.
-
#store_credit ⇒ Object
Returns the value of attribute store_credit.
Attributes inherited from Resource
Class Method Summary collapse
Methods included from Countable
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_hash ⇒ Object
Returns the value of attribute addresses_hash.
17 18 19 |
# File 'lib/bigcommerce_api/customer.rb', line 17 def addresses_hash @addresses_hash end |
#company ⇒ Object
Returns the value of attribute company.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def company @company end |
#customer_group_id ⇒ Object
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_created ⇒ Object
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_modified ⇒ Object
Returns the value of attribute date_modified.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def date_modified @date_modified end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def last_name @last_name end |
#notes ⇒ Object
Returns the value of attribute notes.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def notes @notes end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/bigcommerce_api/customer.rb', line 4 def phone @phone end |
#registration_ip_address ⇒ Object
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_credit ⇒ Object
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 |