Sha256: 50a54eef586f8c954e4dde054c63848d600e5e706ad3454fc5b0e8b7eac09023

Contents?: true

Size: 636 Bytes

Versions: 56

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    class DataPortabilityDebateSerializer < Decidim::Exporters::Serializer
      # Serializes a Debate for data portability
      def serialize
        {
          id: resource.id,
          title: resource.title,
          description: resource.description,
          instructions: resource.instructions,
          start_time: resource.start_time,
          end_time: resource.end_time,
          information_updates: resource.information_updates,
          reference: resource.reference,
          component: resource.component.name
        }
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
decidim-debates-0.26.10 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.9 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.8 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.7 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.5 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.4 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.3 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.2 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.1 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.0 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.0.rc2 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.26.0.rc1 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.2 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.1 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.0 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.0.rc4 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.0.rc3 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.0.rc2 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.25.0.rc1 app/serializers/decidim/debates/data_portability_debate_serializer.rb
decidim-debates-0.24.3 app/serializers/decidim/debates/data_portability_debate_serializer.rb