Sha256: 9210ed41a2b66c4952b00f4d5648046560b9661d8eddbc38e01ddaa0ef0b966a

Contents?: true

Size: 322 Bytes

Versions: 16

Compression:

Stored size: 322 Bytes

Contents

require 'rack-geo'

class Caboodle::Geo < Caboodle::Kit
  optional [:zip, :postcode, :address, :latitude, :longitude]
  
  before do
    @latitude, @longitude, @uncertainty = 37.0625, -95.677068, 100
    @coords = "#{@latitude};#{@longitude} epu=#{@uncertainty}"
    headers "HTTP_GEO_POSITION" => @coords
  end    
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
caboodle-0.3.0 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.30 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.29 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.28 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.27 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.26 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.25 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.24 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.23 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.22 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.21 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.20 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.19 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.18 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.16 lib/caboodle/kits/geo/geo.rb
caboodle-0.2.15 lib/caboodle/kits/geo/geo.rb