class Github::Users
def get(*args)
github.users.get
github = Github.new oauth_token: '...'
= Examples
Get the authenticated user
github.users.get user: 'user-name'
github = Github.new
= Examples
Get a single unauthenticated user
def get(*args) params = args.extract_options! normalize! params if user_name = params.delete('user') get_request("/users/#{user_name}", params) else get_request("/user", params) end end