class Github::Repos
def branches(user_name, repo_name, 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, repo_name, params={}) set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params response = get_request("/repos/#{user}/#{repo}/branches", params) return response unless block_given? response.each { |el| yield el } end