lib/access/api.rb in access-2.0.21 vs lib/access/api.rb in access-2.0.22
- old
+ new
@@ -25,9 +25,15 @@
request.get("/offers/#{offer_key}", "offer", options) do |response|
OfferResponse.new(response)
end
end
+ def find_offer_uses_remaining(offer_key, options = {})
+ request.get("/offers/#{offer_key}/uses-remaining", "offer", options) do |response|
+ OfferResponse.new(response)
+ end
+ end
+
# Locations
def search_locations(options = {})
request.get("/locations", "offer", options) do |response|
LocationResponse.new(response)
end