Sha256: 54ca854c7e3651d9e6ab994e4d70c2d931697911155033b931876bfb3f0253cb

Contents?: true

Size: 494 Bytes

Versions: 60

Compression:

Stored size: 494 Bytes

Contents

class Eco::API::UseCases::DefaultCases::ReinviteTransCase < Eco::API::Common::Loaders::UseCase
  name "reinvite"
  type :transform

  def reinvite(users, session, options, usecase)
    invite   = session.new_job("main", "invite", :update, usecase, :account)
    users.each do |person|
      person.account.send_invites = true
      invite.add(person)
    end
  end

  def main(people, session, options, usecase)
    reinvite(people.users, session, options, usecase)
  end

end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
eco-helpers-2.0.48 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.47 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.46 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.45 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.44 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.43 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.42 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.41 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.40 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.39 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.38 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.37 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.36 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.35 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.34 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.33 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.32 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.31 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.30 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.29 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb