Class: Roqua::RomApi::UpdateResponse Private
- Defined in:
- lib/roqua/rom_api/update_response.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
- #response_to_result(response) ⇒ Object private
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.
12 13 14 15 16 17 18 19 20 |
# File 'lib/roqua/rom_api/update_response.rb', line 12 def execute validate_response_for do basic_auth_session.patch "/dossiers/#{dossier_id}/responses/#{external_id}", questionnaire_key: questionnaire_key, answer_data: answer_data, filled_out_at: (filled_out_at.to_i if filled_out_at), started_at: (started_at.to_i if started_at) end end |
#response_to_result(response) ⇒ 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.
22 23 24 |
# File 'lib/roqua/rom_api/update_response.rb', line 22 def response_to_result(response) Models::Response.new(response) end |