Sha256: f0214d35db01f650d6dd1caed7b8969691eee34f6ba9f3325f9f7241764b6467

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

module Roqua
  module CoreApi
    # @api private
    class CreateDossier < ActiveInteraction::Base
      model :session, class: Sessions::AuthSession
      string :dossier_group_id
      hash :attributes, strip: false

      def execute
        response = session.post "/dossier_groups/#{dossier_group_id}/dossiers",
                                person: attributes.delete(:person), dossier: attributes
        Models::Dossier.new(response)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roqua-core-api-0.0.39 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.38 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.37 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.36 lib/roqua/core_api/create_dossier.rb