Sha256: 662b2ad64ec932257c86d8d64407ff925d906fa40a534d11ce903ec528798815
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
module Barometer # # Format: Zip Code (short) # # eg. 90210 # # This class is used to determine if a query is a # :short_zipcode and what the country_code is. # class Query::Format::ShortZipcode < Query::Format def self.format; :short_zipcode; end def self.country_code(query=nil); "US"; end def self.regex; /(^[0-9]{5}$)/; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
barometer-0.8.0 | lib/barometer/formats/short_zipcode.rb |