Module: TwitterCldr::Shared::PhoneCodes

Defined in:
lib/twitter_cldr/shared/phone_codes.rb

Class Method Summary collapse

Class Method Details

.code_for_territory(territory) ⇒ Object



16
17
18
# File 'lib/twitter_cldr/shared/phone_codes.rb', line 16

def code_for_territory(territory)
  resource[territory.to_s.downcase.to_sym]
end

.territoriesObject



12
13
14
# File 'lib/twitter_cldr/shared/phone_codes.rb', line 12

def territories
  resource.keys
end