Class: Etsy4r::FavoriteCommands

Inherits:
Commands
  • Object
show all
Defined in:
lib/etsy4r/favorite_commands.rb

Instance Attribute Summary

Attributes inherited from Commands

#client

Instance Method Summary collapse

Methods inherited from Commands

#initialize

Constructor Details

This class inherits a constructor from Etsy4r::Commands

Instance Method Details

#get_favorers_of_listing(listing_id, optional_params = {}) ⇒ Object



8
9
10
# File 'lib/etsy4r/favorite_commands.rb', line 8

def get_favorers_of_listing(listing_id, optional_params = {})
  @client.process("/listings/#{listing_id}/favorers", optional_params)
end

#get_favorers_of_shop(user_id, optional_params = {}) ⇒ Object



4
5
6
# File 'lib/etsy4r/favorite_commands.rb', line 4

def get_favorers_of_shop(user_id, optional_params = {})
  @client.process("/shops/#{user_id}/favorers", optional_params)
end

#get_favorite_listings_of_user(user_id, optional_params = {}) ⇒ Object



16
17
18
# File 'lib/etsy4r/favorite_commands.rb', line 16

def get_favorite_listings_of_user(user_id, optional_params = {})
  @client.process("/users/#{user_id}/favorites/listings", optional_params)
end

#get_favorite_shops_of_user(user_id, optional_params = {}) ⇒ Object



12
13
14
# File 'lib/etsy4r/favorite_commands.rb', line 12

def get_favorite_shops_of_user(user_id, optional_params = {})
  @client.process("/users/#{user_id}/favorites/shops", optional_params)
end