Sha256: f6184ee0069edbeeff6f6c0296c28a0edecef5fa898b522a4da0f30729d0fd62
Contents?: true
Size: 767 Bytes
Versions: 56
Compression:
Stored size: 767 Bytes
Contents
# frozen_string_literal: true module Decidim # This class serializes a Follow so can be exported to CSV module DataPortabilitySerializers class DataPortabilityNotificationSerializer < Decidim::Exporters::Serializer include Decidim::ResourceHelper # Public: Exports a hash with the serialized data for follow. 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 end end end
Version data entries
56 entries across 56 versions & 1 rubygems