module Geolookup::Country::PhoneCodes

Constants

COUNTRY_TO_PHONE_CODE_FILE

Public Class Methods

country_phone_codes() click to toggle source
# File lib/geolookup/country_phone_codes.rb, line 14
def self.country_phone_codes
  @country_to_phone_code ||= Geolookup.load_hash_from_file(COUNTRY_TO_PHONE_CODE_FILE)
  @country_to_phone_code.values
end
country_to_phone_code(country_code) click to toggle source
# File lib/geolookup/country_phone_codes.rb, line 9
def self.country_to_phone_code(country_code)
  @country_to_phone_code ||= Geolookup.load_hash_from_file(COUNTRY_TO_PHONE_CODE_FILE)
  @country_to_phone_code[country_code]
end