class Github::Client::Orgs

def edit(*args)

Other tags:
    Api: - public

Parameters:
  • params (Hash) --
def edit(*args)
  arguments(args, required: [:org_name]) do
    permit VALID_ORG_PARAM_NAMES
  end
  patch_request("/orgs/#{arguments.org_name}", arguments.params)
end

def get(*args)

Other tags:
    Api: - public
def get(*args)
  arguments(args, required: [:org_name])
  get_request("/orgs/#{arguments.org_name}", arguments.params)
end

def list(*args)

Other tags:
    Api: - public
def list(*args)
  params = arguments(args).params
  response = if (user_name = params.delete("user"))
    get_request("/users/#{user_name}/orgs", params)
  else
    # For the authenticated user
    get_request("/user/orgs", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end