Sha256: f1e072bee9d3d1f5d80fa073190d0a5a6b5cce8df3c86a4157fa840ffb8fdb6b

Contents?: true

Size: 1006 Bytes

Versions: 7

Compression:

Stored size: 1006 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).url
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-conferences-0.29.2 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.5 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.29.1 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.4 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.29.0 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.28.3 lib/decidim/api/conference_partner_type.rb
decidim-conferences-0.29.0.rc4 lib/decidim/api/conference_partner_type.rb