Class: Decidim::DataPortabilitySerializers::DataPortabilityNotificationSerializer
- Inherits:
-
Exporters::Serializer
- Object
- Exporters::Serializer
- Decidim::DataPortabilitySerializers::DataPortabilityNotificationSerializer
- Includes:
- ResourceHelper
- Defined in:
- lib/decidim/data_portability_serializers/data_portability_notification_serializer.rb
Instance Attribute Summary
Attributes inherited from Exporters::Serializer
Instance Method Summary collapse
-
#serialize ⇒ Object
Public: Exports a hash with the serialized data for follow.
Methods included from ResourceHelper
#linked_classes_filter_values_for, #linked_classes_for, #linked_resources_for, #resource_locator, #resource_title
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
Public: Exports a hash with the serialized data for follow.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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 |