class Github::Repos
def teams(*args)
github.repos(user: 'user-name, repo: 'repo-name').teams
github.repos.teams 'user-name', 'repo-name' { |team| ... }
github.repos.teams 'user-name', 'repo-name'
github = Github.new
== Examples
List teams
def teams(*args) arguments(args, :required => [:user, :repo]) params = arguments.params response = get_request("/repos/#{user}/#{repo}/teams", params) return response unless block_given? response.each { |el| yield el } end