Class: AssessmentFormPresenter

Inherits:
ExplicitDelegator show all
Defined in:
app/presenters/assessment_form_presenter.rb

Direct Known Subclasses

SubmittedAssessmentFormPresenter

Instance Method Summary collapse

Methods inherited from ExplicitDelegator

enforce_definitions, #enforced_methods, #ensure_defined, #initialize

Constructor Details

This class inherits a constructor from ExplicitDelegator

Instance Method Details

#css_classesObject



14
15
16
# File 'app/presenters/assessment_form_presenter.rb', line 14

def css_classes
  nil
end


30
31
32
# File 'app/presenters/assessment_form_presenter.rb', line 30

def footer_partial
  'woople-theme/assessment_form_submission'
end

#questionsObject



18
19
20
# File 'app/presenters/assessment_form_presenter.rb', line 18

def questions
  ThemePresentation.wrap_collection(assessment_result.questions, WoopleTheme::QuestionPresenter)
end


26
27
28
# File 'app/presenters/assessment_form_presenter.rb', line 26

def render_copyright
  yield if copyright.present?
end

#render_result_statusObject



22
23
24
# File 'app/presenters/assessment_form_presenter.rb', line 22

def render_result_status
  nil
end

#titleObject



10
11
12
# File 'app/presenters/assessment_form_presenter.rb', line 10

def title
  I18n.t('woople_theme.assessment.name')
end