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