Class: Decidim::Debates::DownloadYourDataDebateSerializer
- Inherits:
-
Exporters::Serializer
- Object
- Exporters::Serializer
- Decidim::Debates::DownloadYourDataDebateSerializer
- Defined in:
- app/serializers/decidim/debates/download_your_data_debate_serializer.rb
Instance Method Summary collapse
-
#serialize ⇒ Object
Serializes a Debate for download your data.
Instance Method Details
#serialize ⇒ Object
Serializes a Debate for download your data
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/serializers/decidim/debates/download_your_data_debate_serializer.rb', line 7 def serialize { id: resource.id, title: resource.title, description: resource.description, instructions: resource.instructions, start_time: resource.start_time, end_time: resource.end_time, information_updates: resource.information_updates, reference: resource.reference, component: resource.component.name } end |