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.
sqm-dashboards/app/presenters/teacher_survey_presenter.rb

19 lines
332 B

class TeacherSurveyPresenter < DataItemPresenter
def initialize(measure_id:, survey_items:)
super(measure_id: measure_id)
@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
end