class MustardClient::ResultsClient
Public Instance Methods
add(result_params)
click to toggle source
# File lib/MustardClient/results.rb, line 29 def add result_params command = {} command[:method] = :post command[:route] = @mustard_url + "/results" command[:params] = {result: result_params} command[:headers] = {'User-Token' => @user_token} execute(command) end
find(result_id)
click to toggle source
# File lib/MustardClient/results.rb, line 17 def find result_id command = {} command[:method] = :get command[:route] = @mustard_url + "/results/#{result_id}" command[:headers] = {'User-Token' => @user_token} execute(command) end
recent()
click to toggle source
# File lib/MustardClient/results.rb, line 5 def recent command = {} command[:method] = :get command[:route] = @mustard_url + "/recent-results" command[:headers] = {'User-Token' => @user_token} execute(command) end
screenshot(result_id, screenshot_id)
click to toggle source
# File lib/MustardClient/results.rb, line 41 def screenshot result_id, screenshot_id command = {} command[:method] = :get command[:route] = @mustard_url + "/results/#{result_id}/screenshot/#{screenshot_id}" command[:headers] = {'User-Token' => @user_token} execute(command) end