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

#addressObject

Returns the value of attribute address.



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

def address
  @address
end

#address2Object

Returns the value of attribute address2.



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

def address2
  @address2
end

#birthDateObject

Returns the value of attribute birthDate.



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

def birthDate
  @birthDate
end

#cityObject

Returns the value of attribute city.



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

def city
  @city
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#firstNameObject

Returns the value of attribute firstName.



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

def firstName
  @firstName
end

#lastNameObject

Returns the value of attribute lastName.



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

def lastName
  @lastName
end

#phoneObject

Returns the value of attribute phone.



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

def phone
  @phone
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#zipObject

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_membersObject



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

def self.list_members
  :customers
end

.urlObject



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

def self.url
  '/customers'
end