Method: Github::Client::Repos::Contents#get
- Defined in:
- lib/github_api/client/repos/contents.rb
#get(*args) ⇒ Object Also known as: find
Get contents
This method returns the contents of any file or directory in a repository.
73 74 75 76 77 |
# File 'lib/github_api/client/repos/contents.rb', line 73 def get(*args) arguments(args, required: [:user, :repo, :path]) get_request("/repos/#{arguments.user}/#{arguments.repo}/contents/#{arguments.path}", arguments.params) end |