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.
19 lines
396 B
19 lines
396 B
class StudentSurveyPresenter < 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
|
|
"Student survey"
|
|
end
|
|
|
|
def id
|
|
"student-survey-items-#{@measure_id}"
|
|
end
|
|
|
|
def item_descriptions
|
|
@survey_items.map(&:prompt)
|
|
end
|
|
end
|