Module: USPSStandardizer
- Defined in:
- lib/usps_standardizer.rb,
lib/usps_standardizer/cache.rb,
lib/usps_standardizer/version.rb,
lib/usps_standardizer/zip_lookup.rb,
lib/usps_standardizer/configuration.rb
Overview
TODO: Improve documentation
Defined Under Namespace
Modules: Version Classes: Cache, Configuration, ZipLookup
Class Method Summary collapse
Class Method Details
.cache ⇒ Object
18 19 20 21 22 23 |
# File 'lib/usps_standardizer.rb', line 18 def cache if @cache.nil? and store = Configuration.cache @cache = Cache.new(store, Configuration.cache_prefix) end @cache end |
.lookup_for(options, mechanize = Mechanize.new) ⇒ Object
13 14 15 16 |
# File 'lib/usps_standardizer.rb', line 13 def lookup_for(, mechanize = Mechanize.new) z = ZipLookup.new(, mechanize) z.std_address end |