class GithubAnalyze::Client
Public Class Methods
new(github_authentication_token:)
click to toggle source
# File lib/github_analyze/client.rb, line 6 def initialize(github_authentication_token:) @github_authentication_token = github_authentication_token end
Public Instance Methods
organization(name:)
click to toggle source
# File lib/github_analyze/client.rb, line 10 def organization(name:) GithubAnalyze::Organization.new(name: name, client: graphql_client) end
Private Instance Methods
graphql_client()
click to toggle source
# File lib/github_analyze/client.rb, line 16 def graphql_client Graphlient::Client.new( 'https://api.github.com/graphql', { headers: { 'Authorization' => "bearer #{@github_authentication_token}" } } ) end