Sha256: 3c6de8933f67320f123f7e825f04d6ad7c915aaadd14a0100f1e830d83dbc7f0

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

module Etsy4r
  class FavoriteCommands < Etsy4r::Commands
    
    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

4 entries across 4 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.3.0 lib/etsy4r/favorite_commands.rb
tcocca-etsy4r-0.3.1 lib/etsy4r/favorite_commands.rb
tcocca-etsy4r-0.3.2 lib/etsy4r/favorite_commands.rb
tcocca-etsy4r-0.4.0 lib/etsy4r/favorite_commands.rb