class VpsbClient::Api::GetTrialSysbenchTests
Public Class Methods
new(http_client, params)
click to toggle source
Calls superclass method
# 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
tests(http_response)
click to toggle source
# 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
Public Instance Methods
url_path()
click to toggle source
# File lib/vpsb_client/api/get_trial_sysbench_tests.rb, line 9 def url_path "/api/trials/#{@trial_id}/sysbench_tests" end