lib/github/graphql.rb
def token(token)
      raise ArgumentError, 'Invalid Token', caller unless
        token =~ /\A[A-Za-z0-9]{40,40}\z/
      @request['Authorization'] = "bearer #{token}"
    end
##
# Set the OAuth token.
#
# Will raise an ArgumentError if token is nil
#
Set the OAuth token.
Will raise an ArgumentError if token is nil
Set the OAuth token . Will raise an ArgumentError if token is nil
def token(token)
      raise ArgumentError, 'Invalid Token', caller unless
        token =~ /\A[A-Za-z0-9]{40,40}\z/
      @request['Authorization'] = "bearer #{token}"
    end
def token ( token ) raise ArgumentError , 'Invalid Token' , caller unless token =~ / \A [A-Za-z0-9]{40,40} \z / @request [ 'Authorization' ] = "bearer #{token}" end
Set the OAuth token.
Set the OAuth token .
token