mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
22 lines
458 B
Ruby
22 lines
458 B
Ruby
class TeacherSurveyPresenter < DataItemPresenter
|
|
def initialize(measure_id:, survey_items:, has_sufficient_data:)
|
|
super(measure_id: measure_id, has_sufficient_data: has_sufficient_data)
|
|
@survey_items = survey_items
|
|
end
|
|
|
|
def title
|
|
'Teacher survey'
|
|
end
|
|
|
|
def id
|
|
"teacher-survey-items-#{@measure_id}"
|
|
end
|
|
|
|
def item_descriptions
|
|
@survey_items.map(&:prompt)
|
|
end
|
|
|
|
def reason_for_insufficiency
|
|
'low response rate'
|
|
end
|
|
end
|