class Decidim::DataPortabilitySerializers::DataPortabilityIdentitySerializer
Public Instance Methods
serialize()
click to toggle source
Public: Exports a hash with the serialized data for this identities.
# File lib/decidim/data_portability_serializers/data_portability_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