lib/github/graphql.rb
def payload(query, vars = nil)
      raise ArgumentError, 'Cannot have nil query!', caller if query.nil?
      @payload['query'] = query
      @payload['variables'] = vars
      @request.body = @payload.to_json
    end
##
# Set the query string and optionally the variables to be passed
# with the query.
#
# Will raise an ArgumentError if query is nil
#
Set the query string and optionally the variables to be passed
with the query.

Will raise an ArgumentError if query is nil
Set the query string and optionally the variables to be passed with the query . Will raise an ArgumentError if query is nil
def payload(query, vars = nil)
      raise ArgumentError, 'Cannot have nil query!', caller if query.nil?
      @payload['query'] = query
      @payload['variables'] = vars
      @request.body = @payload.to_json
    end
def payload ( query , vars = nil ) raise ArgumentError , 'Cannot have nil query!' , caller if query . nil? @payload [ 'query' ] = query @payload [ 'variables' ] = vars @request . body = @payload . to_json end
Set the query string and optionally the variables to be passed
with the query.
Set the query string and optionally the variables to be passed with the query .
query
vars