Class: Access::Api
Instance Method Summary collapse
-
#autocomplete(options = {}) ⇒ Object
auto complete.
- #find_category(category_id, options = {}) ⇒ Object
- #find_location(location_id, options = {}) ⇒ Object
- #find_offer(offer_id, options = {}) ⇒ Object
- #find_store(store_id, options = {}) ⇒ Object
-
#redeem_offer(offer_key, redeem_type = nil, options = {}) ⇒ Object
redeem.
-
#search_categories(options = {}) ⇒ Object
offer.
- #search_locations(options = {}) ⇒ Object
- #search_offers(options = {}) ⇒ Object
- #search_stores(options = {}) ⇒ Object
-
#usage(options = {}) ⇒ Object
report.
- #usage_other(token, options = {}) ⇒ Object
-
#verify(options = {}) ⇒ Object
token.
- #verify_filter(options = {}) ⇒ Object
- #verify_other(token, options = {}) ⇒ Object
Methods inherited from Request
Instance Method Details
#autocomplete(options = {}) ⇒ Object
auto complete
38 39 40 |
# File 'lib/access/api.rb', line 38 def autocomplete( = {}) get("/autocomplete", "offer", ) end |
#find_category(category_id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/access/api.rb', line 9 def find_category(category_id, = {}) get("/categories/#{category_id}", "offer", ) end |
#find_location(location_id, options = {}) ⇒ Object
25 26 27 |
# File 'lib/access/api.rb', line 25 def find_location(location_id, = {}) get("/locations/#{location_id}", "offer", ) end |
#find_offer(offer_id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/access/api.rb', line 17 def find_offer(offer_id, = {}) get("/offers/#{offer_id}", "offer", ) end |
#find_store(store_id, options = {}) ⇒ Object
33 34 35 |
# File 'lib/access/api.rb', line 33 def find_store(store_id, = {}) get("/stores/#{store_id}", "offer", ) end |
#redeem_offer(offer_key, redeem_type = nil, options = {}) ⇒ Object
redeem
56 57 58 |
# File 'lib/access/api.rb', line 56 def redeem_offer(offer_key, redeem_type = nil, = {}) get("/redeem/#{offer_key}/#{redeem_type}", "redeem", ) end |
#search_categories(options = {}) ⇒ Object
offer
5 6 7 |
# File 'lib/access/api.rb', line 5 def search_categories( = {}) get("/categories", "offer", ) end |
#search_locations(options = {}) ⇒ Object
21 22 23 |
# File 'lib/access/api.rb', line 21 def search_locations(={}) get("/locations", "offer", ) end |
#search_offers(options = {}) ⇒ Object
13 14 15 |
# File 'lib/access/api.rb', line 13 def search_offers(={}) get("/offers", "offer", ) end |
#search_stores(options = {}) ⇒ Object
29 30 31 |
# File 'lib/access/api.rb', line 29 def search_stores(={}) get("/stores", "offer", ) end |
#usage(options = {}) ⇒ Object
report
61 62 63 |
# File 'lib/access/api.rb', line 61 def usage( = {}) get("/usage", "report", ) end |
#usage_other(token, options = {}) ⇒ Object
65 66 67 |
# File 'lib/access/api.rb', line 65 def usage_other(token, = {}) get("/usage/#{token}", "report", ) end |
#verify(options = {}) ⇒ Object
token
43 44 45 |
# File 'lib/access/api.rb', line 43 def verify( = {}) get("/verify", "token", ) end |
#verify_filter(options = {}) ⇒ Object
51 52 53 |
# File 'lib/access/api.rb', line 51 def verify_filter( = {}) get("/filter", "token", ) end |
#verify_other(token, options = {}) ⇒ Object
47 48 49 |
# File 'lib/access/api.rb', line 47 def verify_other(token, = {}) get("/verify/#{token}", "token", ) end |