Sha256: ffc503c48ae28e36cf433ca6cf8804f4b02bc8e0a8e1db6d69a2d2ac04973521

Contents?: true

Size: 601 Bytes

Versions: 7

Compression:

Stored size: 601 Bytes

Contents

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

          def process
            @cases.define("reinvite", type: :transform) do |people, session, options, usecase|
              invite = session.job_group("main").new("invite", usecase: usecase, type: :update, sets: :account)
              people.users.each do |person|
                person.account.send_invites = true
                invite.add(person)
              end
              invite
            end
          end

        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eco-helpers-1.0.5 lib/eco/api/usecases/default_cases/reinvite_case.rb
eco-helpers-1.0.4 lib/eco/api/usecases/default_cases/reinvite_case.rb
eco-helpers-1.0.3 lib/eco/api/usecases/default_cases/reinvite_case.rb
eco-helpers-0.9.5 lib/eco/api/usecases/default_cases/reinvite_case.rb
eco-helpers-1.0.2 lib/eco/api/usecases/default_cases/reinvite_case.rb
eco-helpers-0.9.4 lib/eco/api/usecases/default_cases/reinvite_case.rb
eco-helpers-0.9.3 lib/eco/api/usecases/default_cases/reinvite_case.rb