Class: Graticule::Geocoder::Bogus

Inherits:
Object
  • Object
show all
Defined in:
lib/graticule/geocoder/bogus.rb

Overview

Bogus geocoder that can be used for test purposes

Instance Method Summary collapse

Instance Method Details

#locate(address) ⇒ Object



13
14
15
# File 'lib/graticule/geocoder/bogus.rb', line 13

def locate(address)
  responses.shift || default || Location.new(:street => address)
end