class Github::Repos
def branch(user_name, repo_name, branch, params={})
github.repos.branch 'user-name', 'repo-name', 'branch-name'
github = Github.new
= Examples
Get branch
def branch(user_name, repo_name, branch, params={}) set :user => user_name, :repo => repo_name assert_presence_of user_name, repo_name, branch normalize! params get_request("repos/#{user_name}/#{repo_name}/branches/#{branch}", params) end