class Eco::API::UseCases::DefaultCases::CreateDetailsCase < Eco::API::Common::Loaders::UseCase name "create-details" type :sync def main(entries, people, session, options, usecase) micro = session.micro creation = session.new_job("main", "create", :create, usecase) micro.with_each_starter(entries, people, options, log_present: true) do |entry, person| creation.add(person) micro.set_core(entry, person, options) entry.set_details(person) unless options.dig(:exclude, :details) end end end