mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
27 lines
590 B
Ruby
27 lines
590 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ParentSurveyPresenter < DataItemPresenter
|
|
attr_reader :survey_items, :scale_id
|
|
|
|
def initialize(scale_id:, survey_items:, has_sufficient_data:, school:, academic_year:)
|
|
super(measure_id: scale_id, has_sufficient_data:, school:, academic_year:)
|
|
@scale_id = scale_id
|
|
@survey_items = survey_items
|
|
end
|
|
|
|
def title
|
|
"Parent survey"
|
|
end
|
|
|
|
def id
|
|
"parent-survey-items-#{scale_id}"
|
|
end
|
|
|
|
def reason_for_insufficiency
|
|
"low response rate"
|
|
end
|
|
|
|
def descriptions_and_availability
|
|
survey_items.map(&:description)
|
|
end
|
|
end
|