|
|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
class StudentResponseRateCalculator < ResponseRateCalculator
|
|
|
|
|
def rate; end
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def raw_response_rate
|
|
|
|
|
# def rate
|
|
|
|
|
# check to see if enrollment data is available
|
|
|
|
|
# if not, run the dese loader to get the data
|
|
|
|
|
@ -18,6 +17,10 @@ class StudentResponseRateCalculator < ResponseRateCalculator
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
# All methods below will need to specify a grade
|
|
|
|
|
|
|
|
|
|
(average_responses_per_survey_item / total_possible_responses.to_f * 100).round
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def survey_item_count
|
|
|
|
|
@survey_item_count ||= begin
|
|
|
|
|
survey_items = SurveyItem.includes(%i[scale
|
|
|
|
|
|