class Github::Repos
def branches(user_name=nil, repo_name=nil, params={})
@repos.branches 'user-name', 'repo-name'
@repos = Github::Repos.new
@github.repos.branches 'user-name', 'repo-name'
@github = Github.new
= Examples
List branches
def branches(user_name=nil, repo_name=nil, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless (user? && repo?) response = get("/repos/#{user}/#{repo}/branches", params) return response unless block_given? response.each { |el| yield el } end