Class: Solon::CustomerData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ CustomerData

Returns a new instance of CustomerData.



5
6
7
8
9
# File 'lib/solon/customer_data.rb', line 5

def initialize(attrs = {})
  attrs.each do |h,v|
    send("#{h.to_s}=", v)
  end
end

Instance Attribute Details

#address1Object

Returns the value of attribute address1.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def address2
  @address2
end

#cityObject

Returns the value of attribute city.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def city
  @city
end

#countryObject

Returns the value of attribute country.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def country
  @country
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def email
  @email
end

#firstnamesObject

Returns the value of attribute firstnames.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def firstnames
  @firstnames
end

#phoneObject

Returns the value of attribute phone.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def phone
  @phone
end

#post_codeObject

Returns the value of attribute post_code.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def post_code
  @post_code
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def state
  @state
end

#surnameObject

Returns the value of attribute surname.



3
4
5
# File 'lib/solon/customer_data.rb', line 3

def surname
  @surname
end

Instance Method Details

#[](arg) ⇒ Object



11
12
13
# File 'lib/solon/customer_data.rb', line 11

def [](arg)
  send("#{arg}")
end