Class: VpsbClient::Api::CloseTrialRequest

Inherits:
PutRequest show all
Defined in:
lib/vpsb_client/api/close_trial_request.rb

Instance Method Summary collapse

Methods inherited from PutRequest

#run

Methods inherited from Request

#accept, #post_params, #query_params

Constructor Details

#initialize(http_client, trial_id) ⇒ CloseTrialRequest

Returns a new instance of CloseTrialRequest.



5
6
7
8
# File 'lib/vpsb_client/api/close_trial_request.rb', line 5

def initialize(http_client, trial_id)
  super(http_client)
  @trial_id = trial_id
end

Instance Method Details

#content_typeObject



18
19
20
# File 'lib/vpsb_client/api/close_trial_request.rb', line 18

def content_type
  'application/json'
end

#put_paramsObject



14
15
16
# File 'lib/vpsb_client/api/close_trial_request.rb', line 14

def put_params
  @put_params = { }
end

#url_pathObject



10
11
12
# File 'lib/vpsb_client/api/close_trial_request.rb', line 10

def url_path
  "/api/trials/#{@trial_id}/close"
end