class Github::Client::Scopes
Public Instance Methods
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/client/scopes.rb, line 10 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