Sha256: 3a3b75018e4e7cac3fe68c077837a1942e6145e3f99373a94e61154a0203b6a7

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

module Etsy4r
  class UserCommands < Etsy4r::Commands
    
    def get_user_details(user_id, optional_params = {})
      @client.process("/users/#{user_id}", optional_params)
    end
    
    def get_users_by_name(search_name, optional_params = {})
      search_name_param = search_name.gsub(" ", "_")
      @client.process("/users/keywords/#{search_name_param}", optional_params)
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.1.0 lib/etsy4r/user_commands.rb
tcocca-etsy4r-0.2.0 lib/etsy4r/user_commands.rb
tcocca-etsy4r-0.3.0 lib/etsy4r/user_commands.rb
tcocca-etsy4r-0.3.1 lib/etsy4r/user_commands.rb
tcocca-etsy4r-0.3.2 lib/etsy4r/user_commands.rb
tcocca-etsy4r-0.4.0 lib/etsy4r/user_commands.rb