Sha256: 042cad44dc240cd34b5a8168a1738d507d0c9b6457f141e092577a4b4fe7f1f1
Contents?: true
Size: 754 Bytes
Versions: 56
Compression:
Stored size: 754 Bytes
Contents
# frozen_string_literal: true module Decidim # This class serializes a User so can be exported to CSV module DataPortabilitySerializers class DataPortabilityParticipatorySpacePrivateUserSerializer < Decidim::Exporters::Serializer include Decidim::ResourceHelper # Public: Exports a hash with the serialized data for this user. def serialize { id: resource.id, privatable_to: { id: resource.privatable_to_id, type: resource.privatable_to_type, title: resource.privatable_to.title, slug: resource.privatable_to.slug }, created_at: resource.created_at, updated_at: resource.updated_at } end end end end
Version data entries
56 entries across 56 versions & 1 rubygems