Class: EarlyBird::RewardWorker
- Inherits:
-
ApplicationWorker
- Object
- ApplicationWorker
- EarlyBird::RewardWorker
- Defined in:
- app/workers/early_bird/reward_worker.rb
Overview
Worker responsible for processing early bird rewards after a 24-hour delay following review creation. This ensures users receive their rewards only after the review has been live for a sufficient period.
Instance Method Summary collapse
-
#perform(review_id) ⇒ Object
Process early bird reward for a review.
Methods inherited from ApplicationWorker
Instance Method Details
#perform(review_id) ⇒ Object
Process early bird reward for a review
11 12 13 14 15 |
# File 'app/workers/early_bird/reward_worker.rb', line 11 def perform(review_id) ElasticAPM.with_span('EarlyBird reward processing', 'app') do EarlyBird::RewardOperation.call('review_id' => review_id) end end |