Class: Barometer::Query::Format::ShortZipcode

Inherits:
Base
  • Object
show all
Defined in:
lib/barometer/query/formats/short_zipcode.rb

Overview

eg. 90210

Class Method Summary collapse

Methods inherited from Base

convert_query, is?

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

.regexObject



9
# File 'lib/barometer/query/formats/short_zipcode.rb', line 9

def self.regex; /(^[0-9]{5}$)/; end