Class: Customers::Customer

Inherits:
Object
  • Object
show all
Defined in:
lib/Customers.rb

Overview

noinspection ALL

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @id = get_arg(options, 'id')
  @object = get_arg(options, 'object')
  @date_created = get_arg(options, 'date_created')
  @last_update = get_arg(options, 'last_updated')
  @email_address = get_arg(options, 'email_address')
  @first_name = get_arg(options, 'first_name')
  @last_name = get_arg(options, 'last_name')
  @mobile_country_code = get_arg(options, 'mobile_country_code')
  @mobile_number = get_arg(options, 'mobile_number')
  @object_reference_id = get_arg(options, 'object_reference_id')
end

Instance Attribute Details

#date_createdObject (readonly)

Returns the value of attribute date_created.



8
9
10
# File 'lib/Customers.rb', line 8

def date_created
  @date_created
end

#email_addressObject (readonly)

Returns the value of attribute email_address.



8
9
10
# File 'lib/Customers.rb', line 8

def email_address
  @email_address
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



8
9
10
# File 'lib/Customers.rb', line 8

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/Customers.rb', line 8

def id
  @id
end

#last_nameObject (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_codeObject (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_numberObject (readonly)

Returns the value of attribute mobile_number.



8
9
10
# File 'lib/Customers.rb', line 8

def mobile_number
  @mobile_number
end

#objectObject (readonly)

Returns the value of attribute object.



8
9
10
# File 'lib/Customers.rb', line 8

def object
  @object
end

#object_reference_idObject (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