Sha256: 1436746fd77997f121803f243c67ac7b875693f9d090ce06c957317a1a2a81b3
Contents?: true
Size: 713 Bytes
Versions: 53
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true module Decidim module Core module ComponentInterface include Decidim::Api::Types::BaseInterface description "This interface is implemented by all components that belong into a Participatory Space" field :id, ID, "The Component's unique ID", null: false field :name, TranslatedFieldType, "The name of this component.", null: false field :weight, Integer, "The weight of the component", null: false field :participatory_space, ParticipatorySpaceType, "The participatory space in which this component belongs to.", null: false def self.resolve_type(obj, _ctx) obj.manifest.query_type.constantize end end end end
Version data entries
53 entries across 53 versions & 1 rubygems