Sha256: 5e235230bff3f1a77cdf32c3efc4e06eab1a50144a8a8061d640570dc7856582

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 Bytes

Contents

class Eco::API::UseCases::DefaultCases::CreateDetailsCase < Eco::API::Common::Loaders::UseCase
  name "create-details"
  type :sync

  def main(entries, people, session, options, usecase)
    creation = session.new_job("main", "create",  :create, usecase)

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

  private

  def append_created
    options.dig(:people, :append_created)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eco-helpers-2.5.10 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.9 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.8 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.7 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.6 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.5 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.4 lib/eco/api/usecases/default_cases/create_details_case.rb
eco-helpers-2.5.3 lib/eco/api/usecases/default_cases/create_details_case.rb