Class: Decidim::DownloadYourDataSerializers::DownloadYourDataUserGroupSerializer

Inherits:
Exporters::Serializer show all
Includes:
ResourceHelper
Defined in:
decidim-core/lib/decidim/download_your_data_serializers/download_your_data_user_group_serializer.rb

Instance Attribute Summary

Attributes inherited from Exporters::Serializer

#resource

Instance Method Summary collapse

Methods included from ResourceHelper

#linked_classes_filter_values_for, #linked_classes_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

#serializeObject

Public: Exports a hash with the serialized data for this user.



10
11
12
13
14
15
16
17
18
# File 'decidim-core/lib/decidim/download_your_data_serializers/download_your_data_user_group_serializer.rb', line 10

def serialize
  {
    id: resource.id,
    name: resource.name,
    document_number: resource.document_number,
    phone: resource.phone,
    verified_at: resource.verified_at
  }
end