Class: Solon::CustomerData
- Inherits:
-
Object
- Object
- Solon::CustomerData
- Defined in:
- lib/solon/customer_data.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#email ⇒ Object
Returns the value of attribute email.
-
#firstnames ⇒ Object
Returns the value of attribute firstnames.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#post_code ⇒ Object
Returns the value of attribute post_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#surname ⇒ Object
Returns the value of attribute surname.
Instance Method Summary collapse
- #[](arg) ⇒ Object
-
#initialize(attrs = {}) ⇒ CustomerData
constructor
A new instance of CustomerData.
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
#address1 ⇒ Object
Returns the value of attribute address1.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def address2 @address2 end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def country @country end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def email @email end |
#firstnames ⇒ Object
Returns the value of attribute firstnames.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def firstnames @firstnames end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def phone @phone end |
#post_code ⇒ Object
Returns the value of attribute post_code.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def post_code @post_code end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/solon/customer_data.rb', line 3 def state @state end |
#surname ⇒ Object
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 |