Sha256: a2852eb8d9b60c37275aceba35b085eb04da9f170b2ab215b987bdd4d514b387
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
module Roqua module CoreApi # @api private class CreateProfessional < Base model :session, class: Sessions::OAuthSession string :dossier_group_id model :person, class: Models::Person def execute response = session.post "/dossier_groups/#{dossier_group_id}/people", person: person.as_json if response.code == 422 errors_to_object(response, person) person else Models::Person.new(response['person']) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems