class Reporting::Nursing::StudentLogsJob < Reporting::Job
  def process
    @tmp_file = Pdf::Nursing::StudentProfileLogService.call(student, @params)
    @filename = "medical_logs_per_student_#{timestamp}.pdf"
    save_to_user
    send_report
  end

  private
    def student
      @student ||= @school.students.find_by(id: @params['student_id'])
    end
end
