Class: Etsy4r::ShopCommands

Inherits:
Commands show all
Defined in:
lib/etsy4r/shop_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



21
22
23
# File 'lib/etsy4r/shop_commands.rb', line 21

def get_featured_details(user_id, optional_params = {})
  @client.process("/shops/#{user_id}/listings/featured", optional_params)
end


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

def get_featured_sellers(optional_params = {})
  @client.process("/shops/featured", optional_params)
end

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



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

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

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



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

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

#get_shops_by_name(search_name, optional_params = {}) ⇒ Object



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

def get_shops_by_name(search_name, optional_params = {})
  search_name_param = search_name.gsub(" ", "_")
  @client.process("/shops/keywords/#{search_name_param}", optional_params)
end