Method: HTTPClient#patch

Defined in:
lib/httpclient.rb

#patch(uri, *args, &block) ⇒ Object

Sends PATCH request to the specified URL. See request for arguments.



747
748
749
750
751
752
753
754
# File 'lib/httpclient.rb', line 747

def patch(uri, *args, &block)
  if hashy_argument_has_keys(args, :query, :body)
    new_args = args[0]
  else
    new_args = argument_to_hash(args, :body, :header)
  end
  request(:patch, uri, new_args, &block)
end