Sha256: 1ea03e2e525dd78fa89ba5f40f7cf7fdab9a7766da227fb9d18615705b8feb60

Contents?: true

Size: 546 Bytes

Versions: 13

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class ParticipatorySpaceManifestType < Decidim::Api::Types::BaseObject
      description "A participatory manifest"

      field :name, GraphQL::Types::String, "The name of the manifest", null: false
      field :human_name, Decidim::Core::QuantifiableTranslatedFieldType, "The human readable name for the manifest", null: false

      def human_name
        {
          single: object.human_name,
          plural: object.human_name(count: 2)
        }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.4 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.29.0 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.3 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.29.0.rc4 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.29.0.rc3 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.29.0.rc2 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.29.0.rc1 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.2 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.1 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.0 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.0.rc5 lib/decidim/api/types/participatory_space_manifest_type.rb
decidim-core-0.28.0.rc4 lib/decidim/api/types/participatory_space_manifest_type.rb