Module: ISO3166::TimezoneExtensions

Included in:
Country
Defined in:
lib/countries/timezones.rb

Overview

Extend Country class with support for timezones. Requires the tzinfo gem

gem 'tzinfo'

Instance Method Summary collapse

Instance Method Details

#timezonesObject

TODO: rename method to tz_country or something similar



10
11
12
# File 'lib/countries/timezones.rb', line 10

def timezones
  @timezones ||= TZInfo::Country.get(alpha2)
end