class Github::Scopes

Public Instance Methods

all(*args)
Alias for: list
list(*args) click to toggle source

Check what OAuth scopes you have.

Examples

github = Github.new :oauth_token => 'token'
github.scopes.all
# File lib/github_api/scopes.rb, line 11
def list(*args)
  arguments(args)
  response = get_request("/user", arguments.params)
  response.headers.oauth_scopes ? response.headers.oauth_scopes.split(',') : response
end
Also aliased as: all