lib/access/favorite.rb in access-2.0.18 vs lib/access/favorite.rb in access-2.0.19

- old
+ new

@@ -34,10 +34,14 @@ def self.search_stores(options = {}) Access::Api.new.favorites_search options.merge(favorite_type: 'stores') end + def self.find(offer_key, options = {}) + Access::Api.new.favorites_find offer_key, options + end + def self.find_offer(offer_key, options = {}) Access::Api.new.favorites_find offer_key, options.merge(favorite_type: 'offers') end def self.find_location(location_key, options = {}) @@ -46,19 +50,27 @@ def self.find_store(store_key, options = {}) Access::Api.new.favorites_find store_key, options.merge(favorite_type: 'stores') end + def self.create(offer_key, options = {}) + Access::Api.new.favorites_create offer_key, options + end + def self.create_offer(offer_key, options = {}) Access::Api.new.favorites_create offer_key, options.merge(favorite_type: 'offers') end def self.create_location(location_key, options = {}) Access::Api.new.favorites_create location_key, options.merge(favorite_type: 'locations') end def self.create_store(store_key, options = {}) Access::Api.new.favorites_create store_key, options.merge(favorite_type: 'stores') + end + + def self.delete(offer_key, options = {}) + Access::Api.new.favorites_delete offer_key, options end def self.delete_offer(offer_key, options = {}) Access::Api.new.favorites_delete offer_key, options.merge(favorite_type: 'offers') end