Module: Octokit::Client::Objects
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/objects.rb
Instance Method Summary collapse
- #blob(repo, tree_sha, path, options = {}) ⇒ Object
- #blob_metadata(repo, tree_sha, options = {}) ⇒ Object (also: #blob_meta)
- #blobs(repo, tree_sha, options = {}) ⇒ Object
- #raw(repo, sha, options = {}) ⇒ Object
- #tree(repo, tree_sha, options = {}) ⇒ Object
- #tree_metadata(repo, tree_sha, options = {}) ⇒ Object (also: #tree_meta)
Instance Method Details
#blob(repo, tree_sha, path, options = {}) ⇒ Object
9 10 11 |
# File 'lib/octokit/client/objects.rb', line 9 def blob(repo, tree_sha, path, ={}) get("blob/show/#{Repository.new(repo)}/#{tree_sha}/#{path}", )['blob'] end |
#blob_metadata(repo, tree_sha, options = {}) ⇒ Object Also known as: blob_meta
17 18 19 |
# File 'lib/octokit/client/objects.rb', line 17 def (repo, tree_sha, ={}) get("blob/full/#{Repository.new(repo)}/#{tree_sha}", )['blobs'] end |
#blobs(repo, tree_sha, options = {}) ⇒ Object
13 14 15 |
# File 'lib/octokit/client/objects.rb', line 13 def blobs(repo, tree_sha, ={}) get("blob/all/#{Repository.new(repo)}/#{tree_sha}", )['blobs'] end |
#raw(repo, sha, options = {}) ⇒ Object
27 28 29 |
# File 'lib/octokit/client/objects.rb', line 27 def raw(repo, sha, ={}) get("blob/show/#{Repository.new(repo)}/#{sha}", ) end |
#tree(repo, tree_sha, options = {}) ⇒ Object
5 6 7 |
# File 'lib/octokit/client/objects.rb', line 5 def tree(repo, tree_sha, ={}) get("tree/show/#{Repository.new(repo)}/#{tree_sha}", )['tree'] end |
#tree_metadata(repo, tree_sha, options = {}) ⇒ Object Also known as: tree_meta
22 23 24 |
# File 'lib/octokit/client/objects.rb', line 22 def (repo, tree_sha, ={}) get("tree/full/#{Repository.new(repo)}/#{tree_sha}", )['blobs'] end |