Sha256: e06cf72bb8ff877011e8137b1a2c2a2b85d9ca8ae7d6751c759afa86bcfb6fc2
Contents?: true
Size: 769 Bytes
Versions: 25
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true module Decidim # This class serializes a Follow so can be exported to CSV module DownloadYourDataSerializers class DownloadYourDataNotificationSerializer < 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
25 entries across 25 versions & 1 rubygems