lib/access/api.rb in access-2.0.23 vs lib/access/api.rb in access-2.0.24

- old
+ new

@@ -338,9 +338,25 @@ def favorites_delete(resource_id, options = {}) request.delete("/members/#{options[:member_key]}/favorites/#{options[:favorite_type]}/#{resource_id}", "mms", options) do |response| FavoriteResponse.new(response) end end + + ## Geolocation + + def geolocation_search(options = {}) + request.get('/geolocation', 'offer', options) do |response| + GeolocationResponse.new(response) + end + end + + def geolocation_find(options = {}) + request.get('/geolocation/find_location', 'offer', options) do |response| + GeolocationResponse.new(response) + end + end + + private def request Access::Request.new end