class Github::Orgs

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


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

List public and private organizations for the authenticated user.

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

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