Class: Customers::Customer
- Inherits:
-
Object
- Object
- Customers::Customer
- Defined in:
- lib/Customers.rb
Overview
noinspection ALL
Instance Attribute Summary collapse
-
#date_created ⇒ Object
readonly
Returns the value of attribute date_created.
-
#email_address ⇒ Object
readonly
Returns the value of attribute email_address.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#mobile_country_code ⇒ Object
readonly
Returns the value of attribute mobile_country_code.
-
#mobile_number ⇒ Object
readonly
Returns the value of attribute mobile_number.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#object_reference_id ⇒ Object
readonly
Returns the value of attribute object_reference_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Customer
constructor
A new instance of Customer.
Constructor Details
#initialize(options = {}) ⇒ Customer
Returns a new instance of Customer.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/Customers.rb', line 10 def initialize( = {}) @id = get_arg(, 'id') @object = get_arg(, 'object') @date_created = get_arg(, 'date_created') @last_update = get_arg(, 'last_updated') @email_address = get_arg(, 'email_address') @first_name = get_arg(, 'first_name') @last_name = get_arg(, 'last_name') @mobile_country_code = get_arg(, 'mobile_country_code') @mobile_number = get_arg(, 'mobile_number') @object_reference_id = get_arg(, 'object_reference_id') end |
Instance Attribute Details
#date_created ⇒ Object (readonly)
Returns the value of attribute date_created.
8 9 10 |
# File 'lib/Customers.rb', line 8 def date_created @date_created end |
#email_address ⇒ Object (readonly)
Returns the value of attribute email_address.
8 9 10 |
# File 'lib/Customers.rb', line 8 def email_address @email_address end |
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
8 9 10 |
# File 'lib/Customers.rb', line 8 def first_name @first_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/Customers.rb', line 8 def id @id end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
8 9 10 |
# File 'lib/Customers.rb', line 8 def last_name @last_name end |
#mobile_country_code ⇒ Object (readonly)
Returns the value of attribute mobile_country_code.
8 9 10 |
# File 'lib/Customers.rb', line 8 def mobile_country_code @mobile_country_code end |
#mobile_number ⇒ Object (readonly)
Returns the value of attribute mobile_number.
8 9 10 |
# File 'lib/Customers.rb', line 8 def mobile_number @mobile_number end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
8 9 10 |
# File 'lib/Customers.rb', line 8 def object @object end |
#object_reference_id ⇒ Object (readonly)
Returns the value of attribute object_reference_id.
8 9 10 |
# File 'lib/Customers.rb', line 8 def object_reference_id @object_reference_id end |