From 9d2fca3eb790f3188b78abd9b2da5c5b6163ec9c Mon Sep 17 00:00:00 2001 From: Jason Carpenter Date: Thu, 17 Apr 2014 15:34:06 -0400 Subject: [PATCH] Change option name limited_to_country to restrict_to_country --- lib/graticule/geocoder/mapquest.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/graticule/geocoder/mapquest.rb b/lib/graticule/geocoder/mapquest.rb index bb853a0..27f8783 100644 --- a/lib/graticule/geocoder/mapquest.rb +++ b/lib/graticule/geocoder/mapquest.rb @@ -11,14 +11,14 @@ module Geocoder #:nodoc: # class Mapquest < Base - def initialize(api_key, open = false, limited_to_country = nil) + def initialize(api_key, open = false, restrict_to_country = nil) @api_key = api_key @url = if open URI.parse('http://open.mapquestapi.com/geocoding/v1/address') else URI.parse('http://www.mapquestapi.com/geocoding/v1/address') end - @country_filter = limited_to_country + @country_filter = restrict_to_country end # Locates +address+ returning a Location