Class: Fbe::Graph::HTTP

Inherits:
GraphQL::Client::HTTP
  • Object
show all
Defined in:
lib/fbe/github_graph.rb

Overview

The HTTP class

Instance Method Summary collapse

Constructor Details

#initialize(token, host) ⇒ HTTP

Returns a new instance of HTTP.



134
135
136
137
# File 'lib/fbe/github_graph.rb', line 134

def initialize(token, host)
  @token = token
  super("https://#{host}/graphql")
end

Instance Method Details

#headers(_context) ⇒ Object



139
140
141
# File 'lib/fbe/github_graph.rb', line 139

def headers(_context)
  { Authorization: "Bearer #{@token}" }
end