module Github

This module contains tools for interacting with the Github API

Public Class Methods

query(token, query, vars = nil) click to toggle source

Execute a query to the GraphQL API. Expects a valid Github OAuth token and the query string, and optionally a hash array of the variables to be passed with the query.

Will raise an ArgumentException if either token or query are nil.

# File lib/github/graphql.rb, line 76
def self.query(token, query, vars = nil)
  GraphQL.new(token, query, vars).query
end