Class: VpsbClient::Api::GetTrialSysbenchTests
- Inherits:
-
GetRequest
- Object
- Request
- GetRequest
- VpsbClient::Api::GetTrialSysbenchTests
- Defined in:
- lib/vpsb_client/api/get_trial_sysbench_tests.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_client, params) ⇒ GetTrialSysbenchTests
constructor
A new instance of GetTrialSysbenchTests.
- #url_path ⇒ Object
Methods inherited from GetRequest
Methods inherited from Request
#accept, #post_params, #put_params, #query_params
Constructor Details
#initialize(http_client, params) ⇒ GetTrialSysbenchTests
Returns a new instance of GetTrialSysbenchTests.
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 |