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={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless (user? && repo?)
  normalize! params
  response = get_request("/repos/#{user}/#{repo}/branches", params)
  return response unless block_given?
  response.each { |el| yield el }
end