Sha256: 87a62c30d98a54bf05ba2a8afeae1af05b791c9fb7edeef8c7b6cdc7026ae0da

Contents?: true

Size: 698 Bytes

Versions: 37

Compression:

Stored size: 698 Bytes

Contents

class Eco::API::UseCases::DefaultCases::CreateCase < Eco::API::Common::Loaders::UseCase
  name "create"
  type :sync

  def main(entries, people, session, options, usecase)
    micro    = session.micro
    creation = session.new_job("main", "create",  :create, usecase)
    supers   = session.new_job("post", "supers",  :update, usecase, :core)

    micro.with_each_starter(entries, people, options, log_present: true) do |entry, person|
      creation.add(person)
      micro.set_core_with_supervisor(entry, person, people, supers, options)
      entry.set_details(person) unless options.dig(:exclude, :details)
      micro.set_account(entry, person, options)
    end
  end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
eco-helpers-2.0.25 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.24 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.23 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.22 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.21 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.19 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.18 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.17 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.16 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.15 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.14 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.13 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.12 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.11 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.10 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.9 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.8 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.7 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.6 lib/eco/api/usecases/default_cases/create_case.rb
eco-helpers-2.0.5 lib/eco/api/usecases/default_cases/create_case.rb