Sha256: 70be0a75b30a7c5ff3c9c1b8f6627193dab110783e69e13bb1a1bc439da5409a

Contents?: true

Size: 374 Bytes

Versions: 8

Compression:

Stored size: 374 Bytes

Contents

class Eco::API::UseCases::DefaultCases::EmailAsIdCase < Eco::API::Common::Loaders::UseCase
  name "email-as-id"
  type :transform

  def main(people, session, options, usecase)
    update   = session.new_job("main", "update", :update, usecase, :core)
    people.each do |person|
      person.external_id = person.email
      update.add(person)
    end
  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/email_as_id_case.rb
eco-helpers-2.5.9 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-2.5.8 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-2.5.7 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-2.5.6 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-2.5.5 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-2.5.4 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-2.5.3 lib/eco/api/usecases/default_cases/email_as_id_case.rb