class Decidim::DataPortabilitySerializers::DataPortabilityNotificationSerializer
Public Instance Methods
serialize()
click to toggle source
Public: Exports a hash with the serialized data for follow.
# File lib/decidim/data_portability_serializers/data_portability_notification_serializer.rb, line 10 def serialize { id: resource.id, resource_type: { id: resource.decidim_resource_id, type: resource.decidim_resource_type }, event_name: resource.event_name, event_class: resource.event_class, created_at: resource.created_at, updated_at: resource.updated_at, extra: resource.extra } end