class Github::Users

def emails(options={}, &block)

Access to Users::Emails API
def emails(options={}, &block)
  @emails ||= ApiFactory.new('Users::Emails', current_options.merge(options), &block)
end

def followers(options={}, &block)

Access to Users::Followers API
def followers(options={}, &block)
  @followers ||= ApiFactory.new('Users::Followers', current_options.merge(options), &block)
end

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 = arguments(args).params
  if user_name = params.delete('user')
    get_request("/users/#{user_name}", params)
  else
    get_request("/user", params)
  end
end

def keys(options={}, &block)

Access to Users::Keys API
def keys(options={}, &block)
  @keys ||= ApiFactory.new('Users::Keys', current_options.merge(options), &block)
end

def list(*args)


users.list
users = Github::Users.new
= Examples

* :since - The integer ID of the last User that you’ve seen.
= Parameters

for GitHub.
This provides a dump of every user, in the order that they signed up

List all users.
def list(*args)
  arguments(args)
  response = get_request("/users", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end

def update(*args)


"bio" => "There once..."
"hireable" => true,
"location" => "San Francisco",
"company" => "GitHub",
"blog" => "https://github.com/blog",
"email" => "octocat@github.com",
"name" => "monalisa octocat",
github.users.update
github = Github.new :oauth_token => '..'
= Examples

* :bio - Optional string
* :hireable - Optional boolean
* :location - Optional string
* :company - Optional string
* :blog - Optional string
* :email - Optional string - publically visible email address
* :name - Optional string
= Inputs

Update the authenticated user
def update(*args)
  arguments(args) do
    sift VALID_USER_PARAMS_NAMES
  end
  patch_request("/user", arguments.params)
end