Method: MoesifApi::HttpClient#patch

Defined in:
lib/moesif_api/http/http_client.rb

#patch(query_url, headers: nil, parameters: nil, username: nil, password: nil) ⇒ Object

Get a PATCH HttpRequest object.

Parameters:

  • The (String)

    URL to send the request to.

  • The (Hash, Optional)

    headers for the HTTP Request.

  • The (Hash, Optional)

    parameters for the HTTP Request.

  • Username (String, Optional)

    for Basic Auth requests.

  • Password (String, Optional)

    for Basic Auth requests.



83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/moesif_api/http/http_client.rb', line 83

def patch(query_url,
          headers: nil,
          parameters: nil,
          username: nil,
          password: nil)
  return HttpRequest.new(HttpMethodEnum::PATCH,
                         query_url,
                         headers: headers,
                         parameters: parameters,
                         username: username,
                         password: password)
end