Sha256: ec757b365ed790c332e338cc2dc1f8d62c217a72bf65ff3d1f8d86af6e44e3d5
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module Octokit class Client module Objects def tree(repo, tree_sha, options={}) get("api/v2/json/tree/show/#{Repository.new(repo)}/#{tree_sha}", options)['tree'] end def blob(repo, tree_sha, path, options={}) get("api/v2/json/blob/show/#{Repository.new(repo)}/#{tree_sha}/#{path}", options)['blob'] end def blobs(repo, tree_sha, options={}) get("api/v2/json/blob/all/#{Repository.new(repo)}/#{tree_sha}", options)['blobs'] end def blob_metadata(repo, tree_sha, options={}) get("api/v2/json/blob/full/#{Repository.new(repo)}/#{tree_sha}", options)['blobs'] end alias :blob_meta :blob_metadata def tree_metadata(repo, tree_sha, options={}) get("api/v2/json/tree/full/#{Repository.new(repo)}/#{tree_sha}", options)['tree'] end alias :tree_meta :tree_metadata def raw(repo, sha, options={}) get("api/v2/json/blob/show/#{Repository.new(repo)}/#{sha}", options, 2, true, true).body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.6.3 | lib/octokit/client/objects.rb |