class Github::Users::Emails

def add(*args)


github.users.emails.add "octocat@github.com", "support@github.com"
github = Github.new :oauth_token => '...'
= Examples

You can include a single email address or an array of addresses
= Inputs

Add email address(es) for the authenticated user
def add(*args)
  params = _extract_parameters(args)
  _normalize_params_keys(params)
  params['data'] = args if args
  post_request("/user/emails", params)
end

def delete(*args)


github.users.emails.delete "octocat@github.com", "support@github.com"
github = Github.new :oauth_token => '...'
= Examples

You can include a single email address or an array of addresses
= Inputs

Delete email address(es) for the authenticated user
def delete(*args)
  params = _extract_parameters(args)
  _normalize_params_keys(params)
  params['data'] = args if args
  delete_request("/user/emails", params)
end

def list(params={})


github.users.emails.list { |email| ... }
github.users.emails.list
github = Github.new :oauth_token => '...'
= Examples

List email addresses for the authenticated user
def list(params={})
  _normalize_params_keys(params)
  response = get_request("/user/emails", params)
  return response unless block_given?
  response.each { |el| yield el }
end