class MustardClient::ProjectsClient
Public Instance Methods
add(project_params)
click to toggle source
# File lib/MustardClient/projects.rb, line 27 def add project_params command = {} command[:method] = :post command[:route] = @mustard_url + "/projects" command[:params] = {project: project_params} command[:headers] = {'User-Token' => @user_token} execute(command) end
all()
click to toggle source
# File lib/MustardClient/projects.rb, line 5 def all command = {} command[:method] = :get command[:route] = @mustard_url + '/projects' command[:headers] = {'User-Token' => @user_token} execute(command) end
delete(project_id)
click to toggle source
# File lib/MustardClient/projects.rb, line 39 def delete project_id command = {} command[:method] = :delete command[:route] = @mustard_url + "/projects/#{project_id}" command[:headers] = {'User-Token' => @user_token} execute(command) end
environments(project_id)
click to toggle source
# File lib/MustardClient/projects.rb, line 62 def environments project_id command = {} command[:method] = :get command[:route] = @mustard_url + "/projects/#{project_id}/environments" command[:headers] = {'User-Token' => @user_token} execute(command) end
executions(project_id)
click to toggle source
# File lib/MustardClient/projects.rb, line 95 def executions project_id command = {} command[:method] = :get command[:route] = @mustard_url + "/projects/#{project_id}/executions" command[:headers] = {'User-Token' => @user_token} execute(command) end
find(project_id)
click to toggle source
# File lib/MustardClient/projects.rb, line 16 def find project_id command = {} command[:method] = :get command[:route] = @mustard_url + "/projects/#{project_id}" command[:headers] = {'User-Token' => @user_token} execute(command) end
keywords(project_id)
click to toggle source
# File lib/MustardClient/projects.rb, line 73 def keywords project_id command = {} command[:method] = :get command[:route] = @mustard_url + "/projects/#{project_id}/keywords" command[:headers] = {'User-Token' => @user_token} execute(command) end
testcases(project_id)
click to toggle source
# File lib/MustardClient/projects.rb, line 84 def testcases project_id command = {} command[:method] = :get command[:route] = @mustard_url + "/projects/#{project_id}/testcases" command[:headers] = {'User-Token' => @user_token} execute(command) end
update(project_id, project_params)
click to toggle source
# File lib/MustardClient/projects.rb, line 50 def update project_id, project_params command = {} command[:method] = :put command[:route] = @mustard_url + "/projects/#{project_id}" command[:headers] = {'User-Token' => @user_token} command[:params] = {project: project_params} execute(command) end