Sha256: 5d0dbb97ee612ea84befb4e6b26a7b8f8f1ebe117923ccc483f7e95500780621

Contents?: true

Size: 334 Bytes

Versions: 6

Compression:

Stored size: 334 Bytes

Contents

module Barometer
  module Query
    module Format
      #
      # eg. 90210
      #
      class ShortZipcode < Base
        def self.geo(query); {country_code: 'US'}; end
        def self.regex; /(^[0-9]{5}$)/; end
      end
    end
  end
end

Barometer::Query::Format.register(:short_zipcode, Barometer::Query::Format::ShortZipcode)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
barometer-0.9.7 lib/barometer/query/formats/short_zipcode.rb
barometer-0.9.6 lib/barometer/query/formats/short_zipcode.rb
barometer-0.9.5 lib/barometer/query/formats/short_zipcode.rb
barometer-0.9.4 lib/barometer/query/formats/short_zipcode.rb
barometer-0.9.3 lib/barometer/query/formats/short_zipcode.rb
barometer-0.9.2 lib/barometer/query/formats/short_zipcode.rb