Class: InvoicePdfGenerationWorker
- Inherits:
-
Object
- Object
- InvoicePdfGenerationWorker
- Includes:
- Sidekiq::Job
- Defined in:
- app/workers/invoice_pdf_generation_worker.rb
Overview
Sidekiq worker that regenerates an Invoice's combined PDF in the
background after capture-funds or transmission completes, so the
request thread doesn't have to wait on PDF rendering.
Instance Method Summary collapse
Instance Method Details
#perform(invoice_id) ⇒ void
This method returns an undefined value.
12 13 14 15 16 |
# File 'app/workers/invoice_pdf_generation_worker.rb', line 12 def perform(invoice_id) invoice = Invoice.find(invoice_id) invoice.generate_pdf logger.info "invoicing pdf generation finished for invoice id: #{invoice_id}" end |