class Github::Orgs

def edit(org_name, params={})


"name" => "github"
"location" => "San Francisco",
"email" => "support@github.com",
"company" => "GitHub",
"blog" => "https://github.com/blog",
"billing_email" => "support@github.com",
github.orgs.edit 'github',
github = Github.new :oauth_token => '...'
= Examples

:name - Optional string
:location - Optional string
:email - Optional string
:company - Optional string
:billing_email - Optional string - Billing email address. This address is not publicized.
= Parameters

Edit organization
def edit(org_name, params={})
  _validate_presence_of org_name
  _normalize_params_keys(params)
  _filter_params_keys(VALID_ORG_PARAM_NAMES, params)
  patch_request("/orgs/#{org_name}", params)
end

def get(org_name, params={})


github.orgs.get 'github'
github = Github.new
= Examples

Get properties for a single organization
def get(org_name, params={})
  _validate_presence_of org_name
  get_request("/orgs/#{org_name}", params)
end

def initialize(options = {})

Creates new Orgs API
def initialize(options = {})
  super(options)
end

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

def members

Access to Orgs::Members API
def members
  @members ||= ApiFactory.new 'Orgs::Members'
end

def teams

Access to Orgs::Teams API
def teams
  @teams ||= ApiFactory.new 'Orgs::Teams'
end