Class: TwitterCldr::Timezones::Metazone
- Inherits:
-
Object
- Object
- TwitterCldr::Timezones::Metazone
- Defined in:
- lib/twitter_cldr/timezones/zone_meta.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Metazone
constructor
A new instance of Metazone.
- #reference_region_code ⇒ Object
- #reference_tz_id ⇒ Object
Constructor Details
#initialize(id) ⇒ Metazone
Returns a new instance of Metazone.
8 9 10 |
# File 'lib/twitter_cldr/timezones/zone_meta.rb', line 8 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/twitter_cldr/timezones/zone_meta.rb', line 6 def id @id end |
Instance Method Details
#reference_region_code ⇒ Object
12 13 14 |
# File 'lib/twitter_cldr/timezones/zone_meta.rb', line 12 def reference_region_code properties[:territory] end |
#reference_tz_id ⇒ Object
16 17 18 19 |
# File 'lib/twitter_cldr/timezones/zone_meta.rb', line 16 def reference_tz_id # yes, the naming here doesn't really make sense properties[:type] end |