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.28 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.27 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.26 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.25 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.24 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.23 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.22 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.21 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.19 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.18 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.17 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.16 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.15 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.14 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.13 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.12 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.11 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.10 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.9 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
eco-helpers-2.0.8 lib/eco/api/usecases/default_cases/reinvite_trans_case.rb