Sha256: 40fe522408b314d9615ebbdc4fce6cf8e7150829855c8fce0e383d4721a509e1

Contents?: true

Size: 588 Bytes

Versions: 22

Compression:

Stored size: 588 Bytes

Contents

require 'parliament'
require 'parliament/ntriple'

module Parliament
  module Utils
    module Helpers
      module ParliamentHelper
        def self.parliament_request
          Parliament::Request::UrlRequest.new(
          builder:    Parliament::Builder::NTripleResponseBuilder,
          headers:    { 'Ocp-Apim-Subscription-Key': ENV['PARLIAMENT_AUTH_TOKEN'] },
          decorators: Parliament::Grom::Decorator
          )
        end

        def parliament_request
          Parliament::Utils::Helpers::ParliamentHelper.parliament_request
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
parliament-utils-0.8.1 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.8.0 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.7.3 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.7.2 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.7.1 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.7.0 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.6.1 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.6.0 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.5.0 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.4.2 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.4.1 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.4.0 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.3.2 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.3.1 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.3.0 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.2.5 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.2.4 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.2.3 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.2.2 lib/parliament/utils/helpers/parliament_helper.rb
parliament-utils-0.2.1 lib/parliament/utils/helpers/parliament_helper.rb