class Roqua::CoreApi::UpdateDossier
@api private
Public Instance Methods
execute()
click to toggle source
Saves the dossier attributes to server. Returns true on success, false on validation errors. Raises on other errors.
# File lib/roqua/core_api/update_dossier.rb, line 11 def execute response = session.patch "/dossiers/#{dossier.id}", dossier: dossier.serializable_hash if response.code == 422 errors_to_object(response, dossier) false else true end end