Sha256: ee3c22df42d2d64c830afd56db303a0cfa9451188fcc2d7e1f1e96670890c32f

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module BulletinBoard
    module Graphql
      class Factory
        # The Bulletin Board GraphQL client factory
        def self.client_for(settings)
          Graphlient::Client.new(settings.bulletin_board_server,
                                 schema_path: File.join(__dir__, "bb_schema.json"),
                                 headers: {
                                   "Authorization" => settings.authority_api_key
                                 })
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-bulletin_board-0.14.0 lib/decidim/bulletin_board/graphql/factory.rb
decidim-bulletin_board-0.13.1 lib/decidim/bulletin_board/graphql/factory.rb
decidim-bulletin_board-0.13.0 lib/decidim/bulletin_board/graphql/factory.rb
decidim-bulletin_board-0.12.1 lib/decidim/bulletin_board/graphql/factory.rb
decidim-bulletin_board-0.12.0 lib/decidim/bulletin_board/graphql/factory.rb
decidim-bulletin_board-0.11.0 lib/decidim/bulletin_board/graphql/factory.rb