lib/barometer/formats/short_zipcode.rb in barometer-0.7.3 vs lib/barometer/formats/short_zipcode.rb in barometer-0.8.0
- old
+ new
@@ -6,12 +6,12 @@
#
# 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
\ No newline at end of file
+end