Class: Decidim::DownloadYourDataSerializers::DownloadYourDataIdentitySerializer
- Inherits:
-
Exporters::Serializer
- Object
- Exporters::Serializer
- Decidim::DownloadYourDataSerializers::DownloadYourDataIdentitySerializer
- Includes:
- ResourceHelper
- Defined in:
- lib/decidim/download_your_data_serializers/download_your_data_identity_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 this identities.
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 this identities.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/decidim/download_your_data_serializers/download_your_data_identity_serializer.rb', line 10 def serialize { id: resource.id, provider: resource.provider, uid: resource.uid, user: { id: resource.user.id, name: resource.user.name }, created_at: resource.created_at, updated_at: resource.updated_at } end |