lib/webpagetest/response.rb
# Makes the request to get the status of the test
Makes the request to get the status of the test
Makes the request to get the status of the test
def fetch_status
      connection = @client.connection
      response = connection.get do |req|
        req.url STATUS_BASE
        req.params['f'] = :json
        req.params['test'] = test_id
      end
      response_body = Hashie::Mash.new(JSON.parse(response.body))
      set_status(response_body.data.statusCode.to_s, true)
    end
def fetch_status connection = @client . connection response = connection . get do | req | req . url STATUS_BASE req . params [ 'f' ] = :json req . params [ 'test' ] = test_id end response_body = Hashie :: Mash . new ( JSON . parse ( response . body ) ) set_status ( response_body . data . statusCode . to_s , true ) end
Makes the request to get the status of the test
Makes the request to get the status of the test