Class: Decidim::ActionDelegator::ConsultationResultsSerializer
- Inherits:
-
Exporters::Serializer
- Object
- Exporters::Serializer
- Decidim::ActionDelegator::ConsultationResultsSerializer
- Includes:
- TranslationsHelper
- Defined in:
- app/serializers/decidim/action_delegator/consultation_results_serializer.rb
Instance Method Summary collapse
Instance Method Details
#serialize ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/serializers/decidim/action_delegator/consultation_results_serializer.rb', line 8 def serialize { question: translated_attribute(resource.question.title), response: translated_attribute(resource.title), membership_type: resource.membership_type, membership_weight: resource.membership_weight, votes_count: resource.votes_count } end |