Class: Roqua::CoreApi::UpdateDossier Private
- Defined in:
- lib/roqua/core_api/update_dossier.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#execute ⇒ Object
private
Saves the dossier attributes to server.
Instance Method Details
#execute ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Saves the dossier attributes to server. Returns true on success, false on validation errors. Raises on other errors.
11 12 13 14 15 16 17 18 19 |
# 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 |