Class: PartyProfileImageWorker
- Inherits:
-
Object
- Object
- PartyProfileImageWorker
- Includes:
- Sidekiq::Status::Worker, Sidekiq::Worker
- Defined in:
- app/workers/party_profile_image_worker.rb
Overview
Background worker to lookup and attach profile images for parties.
Uses Clearbit Logo API for company logos.
Instance Method Summary collapse
Instance Method Details
#perform(party_id = nil, options = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'app/workers/party_profile_image_worker.rb', line 24 def perform(party_id = nil, = {}) = .symbolize_keys if party_id.nil? bulk_enqueue() else process_party(party_id, ) end end |