class Github::Repos
def branch(*args)
github.repos(user: 'user-name', repo: 'repo-name', branch: 'branch-name').branch
github.repos.branch user: 'user-name', repo: 'repo-name', branch: 'branch-name'
github.repos.branch 'user-name', 'repo-name', 'branch-name'
github = Github.new
= Examples
Get branch
def branch(*args) arguments(args, :required => [:user, :repo, :branch]) params = arguments.params get_request("/repos/#{user}/#{repo}/branches/#{branch}", params) end