Sha256: 85a813c76f346f7c89889895b15adc8ef2f61b90f1e13bc38c637c58c0658f0d

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

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

      def execute
        response = session.post "/dossier_groups", dossier_group: attributes, organization_id: organization_id
        Models::DossierGroup.new(response["dossier_group"])
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roqua-core-api-0.0.35 lib/roqua/core_api/create_dossier_group.rb
roqua-core-api-0.0.32 lib/roqua/core_api/create_dossier_group.rb
roqua-core-api-0.0.31 lib/roqua/core_api/create_dossier_group.rb
roqua-core-api-0.0.30 lib/roqua/core_api/create_dossier_group.rb
roqua-core-api-0.0.29 lib/roqua/core_api/create_dossier_group.rb
roqua-core-api-0.0.28 lib/roqua/core_api/create_dossier_group.rb
roqua-core-api-0.0.27 lib/roqua/core_api/create_dossier_group.rb