Sha256: 699897ae6648c579cb027a96464a015b51c367cb1240bca594d958aa67799836
Contents?: true
Size: 231 Bytes
Versions: 2
Compression:
Stored size: 231 Bytes
Contents
class GenerateReportJob < Struct.new(:report_id, :requeue) def report @report ||= Report.find_by_id(report_id) end def perform return if report.nil? report.generate! report.queue_next! if requeue end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
daily-0.0.3 | app/jobs/generate_report_job.rb |
daily-0.0.2 | app/jobs/generate_report_job.rb |