Sha256: 9ab46a304373b51c5c05dc9b483c1908c13754ffc35cd9ee0a5f6ee21954d1de

Contents?: true

Size: 790 Bytes

Versions: 2

Compression:

Stored size: 790 Bytes

Contents

module Etsy4r
  class FeedbackCommands < Etsy4r::Commands
    
    def get_feedback(feedback_id)
      @client.process("/feedback/#{feedback_id}")
    end
    
    def get_feedback_for_user(user_id, optional_params = {})
      @client.process("/users/#{user_id}/feedback", optional_params)
    end
    
    def get_feedback_as_buyer(user_id, optional_params = {})
      @client.process("/users/#{user_id}/feedback/buyer", optional_params)
    end
    
    def get_feedback_for_others(user_id, optional_params = {})
      @client.process("/users/#{user_id}/feedback/others", optional_params)
    end
    
    def get_feedback_as_seller(user_id, optional_params = {})
      @client.process("/users/#{user_id}/feedback/seller", optional_params)
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.3.2 lib/etsy4r/feedback_commands.rb
tcocca-etsy4r-0.4.0 lib/etsy4r/feedback_commands.rb