Class: Roqua::CoreApi::CreateProfessional Private
- Defined in:
- lib/roqua/core_api/create_professional.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
- #params ⇒ 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.
11 12 13 14 15 16 17 18 19 |
# File 'lib/roqua/core_api/create_professional.rb', line 11 def execute response = session.post "/dossier_groups/#{dossier_group_id}/people", params if response.code == 422 errors_to_object(response, person) person else Models::Person.new(response['person']) end end |
#params ⇒ 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.
21 22 23 24 25 26 |
# File 'lib/roqua/core_api/create_professional.rb', line 21 def params { person: person.as_json, email_subject: email_subject, email_body: email_body }.delete_if { |k, v| v.nil? } end |