Sha256: d12e587ab7aa50856ac13d6ae41d79a6dd17a3224d72ee966113eb7eca7b6335
Contents?: true
Size: 962 Bytes
Versions: 7
Compression:
Stored size: 962 Bytes
Contents
module Octokit class Client module Objects def tree(repo, tree_sha, options={}) get("tree/show/#{Repository.new(repo)}/#{tree_sha}", options)['tree'] end def blob(repo, tree_sha, path, options={}) get("blob/show/#{Repository.new(repo)}/#{tree_sha}/#{path}", options)['blob'] end def blobs(repo, tree_sha, options={}) get("blob/all/#{Repository.new(repo)}/#{tree_sha}", options)['blobs'] end def blob_metadata(repo, tree_sha, options={}) get("blob/full/#{Repository.new(repo)}/#{tree_sha}", options)['blobs'] end alias :blob_meta :blob_metadata def tree_metadata(repo, tree_sha, options={}) get("tree/full/#{Repository.new(repo)}/#{tree_sha}", options)['tree'] end alias :tree_meta :tree_metadata def raw(repo, sha, options={}) get("blob/show/#{Repository.new(repo)}/#{sha}", options, true).body end end end end
Version data entries
7 entries across 7 versions & 3 rubygems