class Roqua::CoreApi::UpdatePerson
@api private
Public Instance Methods
execute()
click to toggle source
Saves the person attributes to server. Returns true on success, false on validation errors. Adds errors to person object based on I18n
errors.messages. Raises on other errors.
# File lib/roqua/core_api/update_person.rb, line 12 def execute response = session.patch "/people/#{person.id}", person: person.serializable_hash if response.code == 422 errors_to_object(response, person) false else true end end