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.7 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.6 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.5 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.4 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.3 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.2 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.15 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.14 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.13 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.12 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.11 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.10 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.9 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.8 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.7 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.6 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.5 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.4 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.3 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-1.5.2 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb