def send_single_request(method, args)
      post_data = {
          'jsonrpc' => JSON_RPC_VERSION,
          'method'  => method,
          'params'  => args,
          'id'      => self.class.make_id
      }.to_json
      resp = RestClient.post(@url, post_data, content_type: 'application/json', user_agent: "syncano-ruby-#{Syncano::VERSION}")
      if resp.nil? || resp.body.nil? || resp.body.empty?
        raise Jimson::ClientError::InvalidResponse.new
      end

      return resp.body

    rescue Exception, StandardError
      raise Jimson::ClientError::InternalError.new($!)
    end
def send_single_request(method, args)
      post_data = {
          'jsonrpc' => JSON_RPC_VERSION,
          'method'  => method,
          'params'  => args,
          'id'      => self.class.make_id
      }.to_json
      resp = RestClient.post(@url, post_data, content_type: 'application/json', user_agent: "syncano-ruby-#{Syncano::VERSION}")
      if resp.nil? || resp.body.nil? || resp.body.empty?
        raise Jimson::ClientError::InvalidResponse.new
      end

      return resp.body

    rescue Exception, StandardError
      raise Jimson::ClientError::InternalError.new($!)
    end
Overwritten send_single_request method, so it now adds header with the user agent
 @return [Array] collection of responses