class Github::Client::Gists
def get(*args)
- Api: - public
Returns:
-
(Hash)
-
Other tags:
- See: https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist -
See: https://developer.github.com/v3/gists/#get-a-single-gist -
def get(*args) arguments(args, required: [:id]) if (sha = arguments.params.delete('sha')) get_request("/gists/#{arguments.id}/#{sha}") else get_request("/gists/#{arguments.id}", arguments.params) end end