Class: TwitterCldr::Timezones::Metazone

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/timezones/zone_meta.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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_codeObject


12
13
14
# File 'lib/twitter_cldr/timezones/zone_meta.rb', line 12

def reference_region_code
  properties[:territory]
end

#reference_tz_idObject


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