Class: InvisibleCollector::Model::Customer
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::Customer
- Defined in:
- lib/invisible_collector/models/customer.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#email ⇒ Object
Returns the value of attribute email.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#gid ⇒ Object
Returns the value of attribute gid.
-
#mobile ⇒ Object
Returns the value of attribute mobile.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#vat_number ⇒ Object
Returns the value of attribute vat_number.
-
#zip_code ⇒ Object
Returns the value of attribute zip_code.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Customer
constructor
A new instance of Customer.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ Customer
Returns a new instance of Customer.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/invisible_collector/models/customer.rb', line 18 def initialize( = {}) = .with_indifferent_access @name = [:name] @vat_number = [:vat_number] @gid = [:gid] @external_id = [:external_id] @email = [:email] @phone = [:phone] @mobile = [:mobile] @address = [:address] @zip_code = [:zip_code] @city = [:city] @country = [:country] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
13 14 15 |
# File 'lib/invisible_collector/models/customer.rb', line 13 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
15 16 17 |
# File 'lib/invisible_collector/models/customer.rb', line 15 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
16 17 18 |
# File 'lib/invisible_collector/models/customer.rb', line 16 def country @country end |
#email ⇒ Object
Returns the value of attribute email.
10 11 12 |
# File 'lib/invisible_collector/models/customer.rb', line 10 def email @email end |
#external_id ⇒ Object
Returns the value of attribute external_id.
9 10 11 |
# File 'lib/invisible_collector/models/customer.rb', line 9 def external_id @external_id end |
#gid ⇒ Object
Returns the value of attribute gid.
8 9 10 |
# File 'lib/invisible_collector/models/customer.rb', line 8 def gid @gid end |
#mobile ⇒ Object
Returns the value of attribute mobile.
12 13 14 |
# File 'lib/invisible_collector/models/customer.rb', line 12 def mobile @mobile end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/invisible_collector/models/customer.rb', line 6 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
11 12 13 |
# File 'lib/invisible_collector/models/customer.rb', line 11 def phone @phone end |
#vat_number ⇒ Object
Returns the value of attribute vat_number.
7 8 9 |
# File 'lib/invisible_collector/models/customer.rb', line 7 def vat_number @vat_number end |
#zip_code ⇒ Object
Returns the value of attribute zip_code.
14 15 16 |
# File 'lib/invisible_collector/models/customer.rb', line 14 def zip_code @zip_code end |