Sha256: 40eece04b90d74a58587af0d0b9865179c339e879faea30c912e3caf59ca75a2

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module Barometer
  module Query
    module Format
      #
      # eg. 123.1234,-123.123
      #
      class Coordinates < Base
        def self.regex; /^[-]?[0-9\.]+[,]{1}\s?[-]?[0-9\.]+$/; end
      end
    end
  end
end

Barometer::Query::Format.register(:coordinates, Barometer::Query::Format::Coordinates)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
barometer-0.9.1 lib/barometer/query/formats/coordinates.rb
barometer-0.9.0 lib/barometer/query/formats/coordinates.rb