Sha256: 70ff2e1172bb00cde4fefd0ee21120878e036343e53cb3be85ea0af19253f098

Contents?: true

Size: 953 Bytes

Versions: 1

Compression:

Stored size: 953 Bytes

Contents

module Etsy4r
  class FavoriteCommands < Etsy4r::Commands
    
    def get_favorers_of_user(user_id, optional_params = {})
      warn "[DEPRECATION] get_favorers_of_user is deprecated. " <<
       "Use get_favorers_of_shop instead."
      get_favorers_of_shop(user_id, optional_params = {})
    end
    
    def get_favorers_of_shop(user_id, optional_params = {})
      @client.process("/shops/#{user_id}/favorers", optional_params)
    end
    
    def get_favorers_of_listing(listing_id, optional_params = {})
      @client.process("/listings/#{listing_id}/favorers", optional_params)
    end
    
    def get_favorite_shops_of_user(user_id, optional_params = {})
      @client.process("/users/#{user_id}/favorites/shops", optional_params)
    end
    
    def get_favorite_listings_of_user(user_id, optional_params = {})
      @client.process("/users/#{user_id}/favorites/listings", optional_params)
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.2.0 lib/etsy4r/favorite_commands.rb