mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
rename counts_by_grade method to the more descriptive enrollment_by_grade
This commit is contained in:
parent
07ed8dd259
commit
982f216c6c
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ class StudentResponseRateCalculator < ResponseRateCalculator
|
|||
end
|
||||
|
||||
def rates_by_grade
|
||||
@rates_by_grade ||= counts_by_grade.map do |grade, num_of_students_in_grade|
|
||||
@rates_by_grade ||= enrollment_by_grade.map do |grade, num_of_students_in_grade|
|
||||
sufficient_survey_items = survey_items_with_sufficient_responses(grade:).keys
|
||||
actual_response_count_for_grade = SurveyItemResponse.where(school:, academic_year:, grade:,
|
||||
survey_item: sufficient_survey_items).count.to_f
|
||||
|
|
@ -19,8 +19,8 @@ class StudentResponseRateCalculator < ResponseRateCalculator
|
|||
end.compact
|
||||
end
|
||||
|
||||
def counts_by_grade
|
||||
@counts_by_grade ||= respondents.counts_by_grade
|
||||
def enrollment_by_grade
|
||||
@enrollment_by_grade ||= respondents.counts_by_grade
|
||||
end
|
||||
|
||||
def survey_items_have_sufficient_responses?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue