Sha256: 9c9b040914c7c558992976eb5eeb9494c21fb4a10934493ebdbdcf966b7ee1de

Contents?: true

Size: 1007 Bytes

Versions: 39

Compression:

Stored size: 1007 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # This type represents a conference.
    class ConferencePartnerType < Decidim::Api::Types::BaseObject
      description "A conference partner"

      field :id, GraphQL::Types::ID, "ID of the resource", null: false
      field :name, GraphQL::Types::String, "Partner name", null: true
      field :partner_type, GraphQL::Types::String, "Partner type", null: true
      field :weight, GraphQL::Types::Int, "Order of appearance in which it should be presented", null: true
      field :link, GraphQL::Types::String, "Relevant URL for this partner", null: true
      field :logo, GraphQL::Types::String, "Link to the partner's logo", null: true
      field :created_at, Decidim::Core::DateTimeType, "The time this partner was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, "The time this partner was updated", null: true

      def logo
        object.attached_uploader(:logo).path
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
decidim-conferences-0.27.9 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.27.8 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.29.0.rc3 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.29.0.rc2 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.29.0.rc1 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.2 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.27.7 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.1 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.27.6 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.26.10 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.26.9 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.0 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.27.5 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.0.rc5 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.0.rc4 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.26.8 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.27.4 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.27.3 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.26.7 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.26.5 lib/decidim/api/conference_partner_type.rb