Class: TaxExemptionWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/tax_exemption_worker.rb

Overview

Sidekiq worker: tax exemption.

Instance Method Summary collapse

Instance Method Details

#performObject

Runs the job.

Returns:

  • (Object)

    the result



10
11
12
13
# File 'app/workers/tax_exemption_worker.rb', line 10

def perform
  tax_exemptions = TaxExemption.where(expiration_date: ..1.month.from_now).where(expiration_notified: false)
  tax_exemptions.each(&:notify_expiration)
end