class Github::Orgs
def list(*args)
github.orgs.list
github = Github.new oauth_token: '..'
List public and private organizations for the authenticated user.
github.orgs.list user: 'user-name'
github = Github.new
= Examples
List all public organizations for a user.
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