Sha256: 5459ea689f7f3aae0ff64715e884f92f61c91b6555616d034218eb8231f7b14b
Contents?: true
Size: 321 Bytes
Versions: 4
Compression:
Stored size: 321 Bytes
Contents
module Geolookup module USA module AreaCodes AREA_CODE_META_INFO_FILE = 'AREA_CODE_META_INFO.yml' def self.to_h @area_codes_hash ||= Geolookup.load_hash_from_file(AREA_CODE_META_INFO_FILE) end def self.find(area_code) to_h[area_code.to_s] || {} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems