Class: Barometer::Query::Format::ShortZipcode
- Defined in:
- lib/barometer/query/formats/short_zipcode.rb
Overview
eg. 90210
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.geo(query) ⇒ Object
8 |
# File 'lib/barometer/query/formats/short_zipcode.rb', line 8 def self.geo(query); {country_code: 'US'}; end |
.regex ⇒ Object
9 |
# File 'lib/barometer/query/formats/short_zipcode.rb', line 9 def self.regex; /(^[0-9]{5}$)/; end |