Sha256: 10164759ac0190153d6f1d51fae81a095c0efb3ea9dfc41d1082fc9f314467c4

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

class Eco::API::UseCases::DefaultCases::RemoveAccountTransCase < Eco::API::Common::Loaders::UseCase
  name "remove-account"
  type :transform

  def remove_account(users)
    update   = session.new_job("main", "update", :update, usecase, :account)
    users.each do |user|
      user.account = nil
      update.add(user)
    end
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eco-helpers-2.5.10 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.9 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.8 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.7 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.6 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.5 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.4 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
eco-helpers-2.5.3 lib/eco/api/usecases/default_cases/remove_account_trans_case.rb