Class: VpsbClient::Api::GetTrialSysbenchTests
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from GetRequest
#run
Methods inherited from Request
#accept, #post_params, #put_params, #query_params
Constructor Details
4
5
6
7
|
# File 'lib/vpsb_client/api/get_trial_sysbench_tests.rb', line 4
def initialize(http_client, params)
super(http_client)
@trial_id = params[:trial_id]
end
|
Class Method Details
.tests(http_response) ⇒ Object
13
14
15
16
|
# File 'lib/vpsb_client/api/get_trial_sysbench_tests.rb', line 13
def self.tests(http_response)
return [] if http_response.parsed_response.empty?
http_response.parsed_response
end
|
Instance Method Details
#url_path ⇒ Object
9
10
11
|
# File 'lib/vpsb_client/api/get_trial_sysbench_tests.rb', line 9
def url_path
"/api/trials/#{@trial_id}/sysbench_tests"
end
|