Class: InvisibleCollector::Model::Company
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::Company
- Defined in:
- lib/invisible_collector/models/company.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.
-
#gid ⇒ Object
Returns the value of attribute gid.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notifications_enabled ⇒ Object
Returns the value of attribute notifications_enabled.
-
#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 = {}) ⇒ Company
constructor
A new instance of Company.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ Company
Returns a new instance of Company.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/invisible_collector/models/company.rb', line 15 def initialize( = {}) = .with_indifferent_access @name = ['name'] @vat_number = ['vat_number'] @address = ['address'] @zip_code = ['zip_code'] @city = ['city'] @country = ['country'] @gid = ['gid'] @notifications_enabled = ['notifications_enabled'] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
8 9 10 |
# File 'lib/invisible_collector/models/company.rb', line 8 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
10 11 12 |
# File 'lib/invisible_collector/models/company.rb', line 10 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
11 12 13 |
# File 'lib/invisible_collector/models/company.rb', line 11 def country @country end |
#gid ⇒ Object
Returns the value of attribute gid.
12 13 14 |
# File 'lib/invisible_collector/models/company.rb', line 12 def gid @gid end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/invisible_collector/models/company.rb', line 6 def name @name end |
#notifications_enabled ⇒ Object
Returns the value of attribute notifications_enabled.
13 14 15 |
# File 'lib/invisible_collector/models/company.rb', line 13 def notifications_enabled @notifications_enabled end |
#vat_number ⇒ Object
Returns the value of attribute vat_number.
7 8 9 |
# File 'lib/invisible_collector/models/company.rb', line 7 def vat_number @vat_number end |
#zip_code ⇒ Object
Returns the value of attribute zip_code.
9 10 11 |
# File 'lib/invisible_collector/models/company.rb', line 9 def zip_code @zip_code end |