Sha256: fc989af2782965de7e10f70dcd86b2772ed19f262cbb13405d77168451f2d87c

Contents?: true

Size: 531 Bytes

Versions: 22

Compression:

Stored size: 531 Bytes

Contents

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

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
roqua-core-api-0.0.32 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.31 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.30 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.29 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.28 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.27 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.26 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.25 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.24 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.22 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.21 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.20 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.19 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.18 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.17 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.16 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.15 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.14 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.13 lib/roqua/core_api/create_dossier.rb
roqua-core-api-0.0.12 lib/roqua/core_api/create_dossier.rb