Class: InvisibleCollector::Model::Company

Inherits:
AbstractModel show all
Defined in:
lib/invisible_collector/models/company.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModelAttributes

#to_h, #to_json

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(options = {})
  options = options.with_indifferent_access
  @name = options['name']
  @vat_number = options['vat_number']
  @address = options['address']
  @zip_code = options['zip_code']
  @city = options['city']
  @country = options['country']
  @gid = options['gid']
  @notifications_enabled = options['notifications_enabled']
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



8
9
10
# File 'lib/invisible_collector/models/company.rb', line 8

def address
  @address
end

#cityObject

Returns the value of attribute city.



10
11
12
# File 'lib/invisible_collector/models/company.rb', line 10

def city
  @city
end

#countryObject

Returns the value of attribute country.



11
12
13
# File 'lib/invisible_collector/models/company.rb', line 11

def country
  @country
end

#gidObject

Returns the value of attribute gid.



12
13
14
# File 'lib/invisible_collector/models/company.rb', line 12

def gid
  @gid
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/invisible_collector/models/company.rb', line 6

def name
  @name
end

#notifications_enabledObject

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_numberObject

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_codeObject

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