class GitHub::GraphQL::Client::HTTP

Public Class Methods

new(token) click to toggle source
Calls superclass method
# File lib/github/graphql/client.rb, line 11
def initialize(token)
  @token = token
  super(GitHub::GraphQL::URL)
end

Public Instance Methods

headers(context) click to toggle source
# File lib/github/graphql/client.rb, line 16
def headers(context)
  context.merge({"Authorization" => "bearer #{@token}"})
end