Method: Octokit::Client::Gists#gist
- Defined in:
- lib/octokit/client/gists.rb
#gist(gist, options = {}) ⇒ Sawyer::Resource
Get a single gist
52 53 54 55 56 57 58 59 |
# File 'lib/octokit/client/gists.rb', line 52 def gist(gist, = {}) = .dup if sha = .delete(:sha) get "gists/#{Gist.new(gist)}/#{sha}", else get "gists/#{Gist.new(gist)}", end end |