Sha256: 4a02d4d4a119ea8d84c25d0a6e76f8924c7d8a11a0e7f70858b30ea0d434841f

Contents?: true

Size: 573 Bytes

Versions: 50

Compression:

Stored size: 573 Bytes

Contents

module Eco
  module API
    class UseCases
      class DefaultCases
        class EmailAsIdCase < DefaultCase

          def process
            @cases.define("email-as-id", type: :transform) do |people, session, options, usecase|
              job = session.job_group("main").new("update", usecase: usecase, type: :update, sets: :core)

              people.each do |person|
                person.external_id = person.email
                job.add(person)
              end

            end
          end

        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
eco-helpers-1.5.1 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.5.0 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.4.2 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.19 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.4.1 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.4.0 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.18 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.17 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.16 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.15 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.14 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.13 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.12 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.11 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.10 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.9 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.8 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.7 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.6 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-1.3.5 lib/eco/api/usecases/default_cases/email_as_id_case.rb