Class: Decidim::Meetings::BaseDownloadYourDataSerializer
- Inherits:
-
Exporters::Serializer
- Object
- Exporters::Serializer
- Decidim::Meetings::BaseDownloadYourDataSerializer
- Defined in:
- decidim-meetings/app/serializers/decidim/meetings/base_download_your_data_serializer.rb
Direct Known Subclasses
DownloadYourDataInviteSerializer, DownloadYourDataRegistrationSerializer
Instance Attribute Summary
Attributes inherited from Exporters::Serializer
Instance Method Summary collapse
-
#serialize ⇒ Object
This is the Base class for Invite and Registrations models for the download your data feature.
Methods inherited from Exporters::Serializer
#event_name, #finalize, #initialize, #run
Constructor Details
This class inherits a constructor from Decidim::Exporters::Serializer
Instance Method Details
#serialize ⇒ Object
This is the Base class for Invite and Registrations models for the download your data feature
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'decidim-meetings/app/serializers/decidim/meetings/base_download_your_data_serializer.rb', line 7 def serialize { id: resource.id, created_at: resource.created_at, updated_at: resource.updated_at, meeting: { title: resource.meeting.title, url: Decidim::ResourceLocatorPresenter.new(resource.meeting).url, description: resource.meeting.description, start_time: resource.meeting.start_time, end_time: resource.meeting.end_time, address: resource.meeting.address, location: resource.meeting.location, location_hints: resource.meeting.location_hints, reference: resource.meeting.reference, attendees_count: resource.meeting.attendees_count, attending_organizations: resource.meeting.attending_organizations, closed_at: resource.meeting.closed_at, closing_report: resource.meeting.closing_report, published_at: resource.meeting.published_at } } end |