Class: Decidim::DirectVerifications::RevokeUsersJob

Inherits:
BaseImportJob
  • Object
show all
Defined in:
app/jobs/decidim/direct_verifications/revoke_users_job.rb

Instance Method Summary collapse

Methods inherited from BaseImportJob

#perform

Instance Method Details

#process_usersObject



6
7
8
9
10
# File 'app/jobs/decidim/direct_verifications/revoke_users_job.rb', line 6

def process_users
  emails.each do |email, _name|
    RevokeUser.new(email, organization, instrumenter, authorization_handler).call
  end
end

#typeObject



12
13
14
# File 'app/jobs/decidim/direct_verifications/revoke_users_job.rb', line 12

def type
  :revoked
end