Class: Country
- Inherits:
-
Domain::Model
- Object
- Domain::Model
- Country
- Defined in:
- lib/domain/country/model.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
-
#time_zone_r7 ⇒ Object
Returns the value of attribute time_zone_r7.
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
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/domain/country/model.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/domain/country/model.rb', line 6 def name @name end |
#time_zone ⇒ Object
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_r7 ⇒ Object
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_key ⇒ Object
8 9 10 |
# File 'lib/domain/country/model.rb', line 8 def self.primary_key 'code' end |