Class: AssessmentFormPresenter
- Inherits:
-
ExplicitDelegator
- Object
- ExplicitDelegator
- AssessmentFormPresenter
- Defined in:
- app/presenters/assessment_form_presenter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #css_classes ⇒ Object
- #footer_partial ⇒ Object
- #questions ⇒ Object
- #render_copyright ⇒ Object
- #render_result_status ⇒ Object
- #title ⇒ Object
Methods inherited from ExplicitDelegator
enforce_definitions, #enforced_methods, #ensure_defined, #initialize
Constructor Details
This class inherits a constructor from ExplicitDelegator
Instance Method Details
#css_classes ⇒ Object
14 15 16 |
# File 'app/presenters/assessment_form_presenter.rb', line 14 def css_classes nil end |
#footer_partial ⇒ Object
30 31 32 |
# File 'app/presenters/assessment_form_presenter.rb', line 30 def 'woople-theme/assessment_form_submission' end |
#questions ⇒ Object
18 19 20 |
# File 'app/presenters/assessment_form_presenter.rb', line 18 def questions ThemePresentation.wrap_collection(assessment_result.questions, WoopleTheme::QuestionPresenter) end |
#render_copyright ⇒ Object
26 27 28 |
# File 'app/presenters/assessment_form_presenter.rb', line 26 def render_copyright yield if copyright.present? end |
#render_result_status ⇒ Object
22 23 24 |
# File 'app/presenters/assessment_form_presenter.rb', line 22 def render_result_status nil end |
#title ⇒ Object
10 11 12 |
# File 'app/presenters/assessment_form_presenter.rb', line 10 def title I18n.t('woople_theme.assessment.name') end |