You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/app/presenters/teacher_response_rate_prese...

21 lines
404 B

class TeacherResponseRatePresenter < ResponseRatePresenter
def initialize(academic_year:, school:)
super(academic_year:, school:)
@survey_items = SurveyItem.teacher_survey_items
end
def actual_count
response_count_for_survey_items(survey_items:)
end
def respondents_count
return 0 if respondents.nil?
respondents.total_teachers
end
def focus
"teacher"
end
end