Class: ApRubySdk::Customer

Inherits:
ApiResource show all
Includes:
ApiOperations::Create, ApiOperations::List, ApiOperations::Retrieve
Defined in:
lib/ap_ruby_sdk/customer.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResource

#mode

Attributes inherited from BaseModel

#created, #id, #mode, #updated

Class Method Summary collapse

Methods included from ApiOperations::Retrieve

included

Methods included from ApiOperations::List

included

Methods included from ApiOperations::Create

included

Methods inherited from ApiResource

construct_object, url_with_prefix

Methods inherited from BaseModel

#attributes=, #initialize, #to_json

Constructor Details

This class inherits a constructor from ApRubySdk::BaseModel

Instance Attribute Details

#address ⇒ Object

Returns the value of attribute address.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def address
  @address
end

#address2 ⇒ Object

Returns the value of attribute address2.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def address2
  @address2
end

#birthDate ⇒ Object

Returns the value of attribute birthDate.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def birthDate
  @birthDate
end

#city ⇒ Object

Returns the value of attribute city.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def city
  @city
end

#country ⇒ Object

Returns the value of attribute country.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def country
  @country
end

#email ⇒ Object

Returns the value of attribute email.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def email
  @email
end

#firstName ⇒ Object

Returns the value of attribute firstName.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def firstName
  @firstName
end

#lastName ⇒ Object

Returns the value of attribute lastName.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def lastName
  @lastName
end

#phone ⇒ Object

Returns the value of attribute phone.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def phone
  @phone
end

#state ⇒ Object

Returns the value of attribute state.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def state
  @state
end

#zip ⇒ Object

Returns the value of attribute zip.



7
8
9
# File 'lib/ap_ruby_sdk/customer.rb', line 7

def zip
  @zip
end

Class Method Details

.list_members ⇒ Object



23
24
25
# File 'lib/ap_ruby_sdk/customer.rb', line 23

def self.list_members
  :customers
end

.url ⇒ Object



19
20
21
# File 'lib/ap_ruby_sdk/customer.rb', line 19

def self.url
  '/customers'
end