Class: Country

Inherits:
Domain::Model show all
Defined in:
lib/domain/country/model.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Domain::Model

columns, from_csv, from_json, headers, #initialize, table_name, #to_csv, #to_hash, #to_s, view

Constructor Details

This class inherits a constructor from Domain::Model

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/domain/country/model.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/domain/country/model.rb', line 6

def name
  @name
end

#time_zoneObject

Returns the value of attribute time_zone.



6
7
8
# File 'lib/domain/country/model.rb', line 6

def time_zone
  @time_zone
end

#time_zone_r7Object

Returns the value of attribute time_zone_r7.



6
7
8
# File 'lib/domain/country/model.rb', line 6

def time_zone_r7
  @time_zone_r7
end

Class Method Details

.primary_keyObject



8
9
10
# File 'lib/domain/country/model.rb', line 8

def self.primary_key
  'code'
end