lib/twitter_cldr/timezones/location.rb (16 lines of code) (raw):
module TwitterCldr
module Timezones
class Location
attr_reader :tz
def initialize(tz)
@tz = tz
end
def tz_id
tz.identifier
end
def resource
@resource ||= TwitterCldr.get_locale_resource(tz.locale, :timezones)[tz.locale]
end
end
end
end