class Github::Repos::Contents
def get(*args)
github.repos.contents.get path: 'README.md'
github = Github.new user: 'user-name', repo: 'repo-name'
github.repos.contents.get 'user-name', 'repo-name', 'path'
github = Github.new
= Examples
* :ref - Optional string - valid Git reference, defaults to master
= Parameters
This method returns the contents of any file or directory in a repository.
Get contents
def get(*args) arguments(args, :required => [:user, :repo, :path]) params = arguments.params get_request("/repos/#{user}/#{repo}/contents/#{path}", params) end