Module: Octokit::Client::Objects
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/objects.rb
Instance Method Summary collapse
- #blob(repo, tree_sha, options = {}) ⇒ Object
-
#blob_metadata(repo, tree_sha, options = {}) ⇒ Object
(also: #blob_meta)
Depreciated.
-
#blobs(repo, tree_sha, options = {}) ⇒ Object
Depreciated.
-
#raw(repo, sha, options = {}) ⇒ Object
Depreciated.
- #tree(repo, tree_sha, options = {}) ⇒ Object
-
#tree_metadata(repo, tree_sha, options = {}) ⇒ Object
(also: #tree_meta)
Depreciated.
Instance Method Details
#blob(repo, tree_sha, options = {}) ⇒ Object
8 9 10 |
# File 'lib/octokit/client/objects.rb', line 8 def blob(repo, tree_sha, ={}) get("repos/#{Repository.new(repo)}/git/blobs/#{tree_sha}", ) end |
#blob_metadata(repo, tree_sha, options = {}) ⇒ Object Also known as: blob_meta
Depreciated
18 19 20 |
# File 'lib/octokit/client/objects.rb', line 18 def (repo, tree_sha, ={}) get("/api/v2/json/blob/full/#{Repository.new(repo)}/#{tree_sha}", , 2)['blobs'] end |
#blobs(repo, tree_sha, options = {}) ⇒ Object
Depreciated
13 14 15 |
# File 'lib/octokit/client/objects.rb', line 13 def blobs(repo, tree_sha, ={}) get("/api/v2/json/blob/all/#{Repository.new(repo)}/#{tree_sha}", , 2)['blobs'] end |
#raw(repo, sha, options = {}) ⇒ Object
Depreciated
30 31 32 |
# File 'lib/octokit/client/objects.rb', line 30 def raw(repo, sha, ={}) get("/api/v2/json/blob/show/#{Repository.new(repo)}/#{sha}", , 2, true, true).body end |
#tree(repo, tree_sha, options = {}) ⇒ Object
4 5 6 |
# File 'lib/octokit/client/objects.rb', line 4 def tree(repo, tree_sha, ={}) get("repos/#{Repository.new(repo)}/git/trees/#{tree_sha}", ) end |
#tree_metadata(repo, tree_sha, options = {}) ⇒ Object Also known as: tree_meta
Depreciated
24 25 26 |
# File 'lib/octokit/client/objects.rb', line 24 def (repo, tree_sha, ={}) get("/api/v2/json/tree/full/#{Repository.new(repo)}/#{tree_sha}", , 2)['tree'] end |