module SpainZipCodes
This class has duplicated code some way, but I prefer to keep the methods separated even if they are the same so they are easier to change in the future
Constants
- VERSION
Public Class Methods
location_slug_to_zip(location_slug)
click to toggle source
# File lib/spain_zip_codes.rb, line 22 def self.location_slug_to_zip(location_slug) Locationer.slug_to_zip(location_slug) end
location_to_zip(location)
click to toggle source
# File lib/spain_zip_codes.rb, line 18 def self.location_to_zip(location) Locationer.to_zip(location) end
province_to_zip(province)
click to toggle source
# File lib/spain_zip_codes.rb, line 10 def self.province_to_zip(province) Provincer.to_zip(province) end
zip_to_location(zip)
click to toggle source
# File lib/spain_zip_codes.rb, line 14 def self.zip_to_location(zip) Locationer.to_location(zip) end
zip_to_location_slug(zip)
click to toggle source
# File lib/spain_zip_codes.rb, line 26 def self.zip_to_location_slug(zip) Locationer.zip_to_slug(zip) end
zip_to_province(zip)
click to toggle source
# File lib/spain_zip_codes.rb, line 6 def self.zip_to_province(zip) Provincer.to_province(zip) end