Method: CrAPI::Client#patch
- Defined in:
- lib/crapi/client.rb
#patch(path, headers: {}, query: {}, payload: {}) ⇒ Object
CRUD method: PATCH
166 167 168 169 170 171 172 173 |
# File 'lib/crapi/client.rb', line 166 def patch(path, headers: {}, query: {}, payload: {}) headers = @default_headers.merge(headers) payload = format_payload(payload, as: headers[:'Content-Type']) response = @http.patch(full_path(path, query: query), payload, headers) ensure_success!(response) parse_response(response) end |