Method: DotloopApi::Client#patch

Defined in:
lib/dotloop_api/client.rb

#patch(page, model) ⇒ Object



22
23
24
25
26
27
# File 'lib/dotloop_api/client.rb', line 22

def patch(page, model)
  response = self.class.patch(page, query: model.attributes, headers: headers, timeout: 60)
  limits_from_headers(response.headers)
  handle_dotloop_error(response.code) if response.code != 200
  self.class.snakify(response.parsed_response)
end