Module: Github

Defined in:
lib/github/graphql.rb

Overview

This module contains tools for interacting with the Github API

Defined Under Namespace

Classes: GraphQL

Class Method Summary collapse

Class Method Details

.query(token, query, vars = nil) ⇒ Object

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.



75
76
77
# File 'lib/github/graphql.rb', line 75

def self.query(token, query, vars = nil)
  GraphQL.new(token, query, vars).query
end