class Reporting::Nursing::AllergiesJob < Reporting::Job
  def process
    students = @school.students.has_allergies(true).where(id: @params['ids']).ordered
    @tmp_file = Pdf::Nursing::AllergiesService.call(@school, students)
    @filename = "nursing_allergies_#{timestamp}.pdf"
    save_to_user
    send_report
  end
end
