class Reporting::Nursing::VaccineSummaryJob < Reporting::Job
  def process
    create_tmp_file
    @tmp_file.write("\uFEFF#{csv_service}")
    @tmp_file.rewind
    @filename = "vaccine_summary_#{timestamp}.csv"
    save_to_user
    send_report
  end

  private
    def csv_service
      ::Csv::Nursing::VaccineSummaryService.call(@school)
    end
end
