module Eco module API module UseCases class DefaultCases class EmailAsIdCase < BaseCase def process @cases.define("email-as-id", type: :transform) do |people, session| job = session.job_group("main").new("update", type: :update, sets: :core) people.each do |person| person.external_id = person.email job.add(person) end end end end end end end end