Class: Decidim::Forms::AnswerOptionPresenter
- Inherits:
 - 
      SimpleDelegator
      
        
- Object
 - SimpleDelegator
 - Decidim::Forms::AnswerOptionPresenter
 
 
- Includes:
 - TranslationsHelper
 
- Defined in:
 - app/presenters/decidim/forms/answer_option_presenter.rb
 
Overview
Decorator for answer_options
Instance Method Summary collapse
Instance Method Details
#as_json(*_args) ⇒ Object
      15 16 17  | 
    
      # File 'app/presenters/decidim/forms/answer_option_presenter.rb', line 15 def as_json(*_args) { id:, body: translated_body } end  | 
  
#translated_body ⇒ Object
      11 12 13  | 
    
      # File 'app/presenters/decidim/forms/answer_option_presenter.rb', line 11 def translated_body @translated_body ||= translated_attribute body end  |