class MustardClient::EnvironmentsClient
Public Instance Methods
add(environment_params)
click to toggle source
# File lib/MustardClient/environments.rb, line 16 def add environment_params command = {} command[:method] = :post command[:route] = @mustard_url + "/environments" command[:params] = {environment: environment_params} command[:headers] = {'User-Token' => @user_token} execute(command) end
delete(environment_id)
click to toggle source
# File lib/MustardClient/environments.rb, line 28 def delete environment_id command = {} command[:method] = :delete command[:route] = @mustard_url + "/environments/#{environment_id}" command[:headers] = {'User-Token' => @user_token} execute(command) end
find(environment_id)
click to toggle source
# File lib/MustardClient/environments.rb, line 5 def find environment_id command = {} command[:method] = :get command[:route] = @mustard_url + "/environments/#{environment_id}" command[:headers] = {'User-Token' => @user_token} execute(command) end
update(environment_id, environment_params)
click to toggle source
# File lib/MustardClient/environments.rb, line 39 def update environment_id, environment_params command = {} command[:method] = :put command[:route] = @mustard_url + "/environments/#{environment_id}" command[:headers] = {'User-Token' => @user_token} command[:params] = {environment: environment_params} execute(command) end