class Github::Orgs

def list(user_name=nil, params={})


github.orgs.list 'github'
github = Github.new :oauth_token => '..'

List public and private organizations for the authenticated user.

github.orgs.list
github = Github.new :user => 'user-name'
= Examples

List all public organizations for a user.
def list(user_name=nil, params={})
  _update_user_repo_params(user_name)
  _normalize_params_keys(params)
  response = if user?
    get_request("/users/#{user}/orgs", params)
  else
    get_request("/user/orgs", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end