Class: Decidim::Consultations::ConsultationQuestionType
- Inherits:
-
Api::Types::BaseObject
- Object
- Api::Types::BaseObject
- Decidim::Consultations::ConsultationQuestionType
- Defined in:
- lib/decidim/api/consultation_question_type.rb
Overview
This type represents a consultation.
Instance Method Summary collapse
Instance Method Details
#banner_image ⇒ Object
51 52 53 |
# File 'lib/decidim/api/consultation_question_type.rb', line 51 def object.attached_uploader(:banner_image).path end |
#components ⇒ Object
23 24 25 26 27 |
# File 'lib/decidim/api/consultation_question_type.rb', line 23 def components Decidim::Component.where( participatory_space: object ).published end |
#hero_image ⇒ Object
55 56 57 |
# File 'lib/decidim/api/consultation_question_type.rb', line 55 def hero_image object.attached_uploader(:hero_image).path end |