Sha256: 3fa3cb79bdef806b928d3fcebe878180f39268fdd35ede2d0dae432a1acf6dfa

Contents?: true

Size: 535 Bytes

Versions: 22

Compression:

Stored size: 535 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
eco-helpers-0.8.4 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.8.3 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.8.2 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.8.1 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.7.2 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.7.1 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.17 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.16 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.15 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.13 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.12 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.11 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.9 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.8 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.7 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.6 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.5 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.4 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.3 lib/eco/api/usecases/default_cases/email_as_id_case.rb
eco-helpers-0.6.2 lib/eco/api/usecases/default_cases/email_as_id_case.rb