Module: Octokit::Client::Objects

Included in:
Octokit::Client
Defined in:
lib/octokit/client/objects.rb

Instance Method Summary collapse

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, options={})
  get("blob/show/#{Repository.new(repo)}/#{tree_sha}/#{path}", options)['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, options={})
  get("blob/full/#{Repository.new(repo)}/#{tree_sha}", options)['blobs']
end

#blobs(repo, tree_sha, options = {}) ⇒ Object



13
14
15
# File 'lib/octokit/client/objects.rb', line 13

def blobs(repo, tree_sha, options={})
  get("blob/all/#{Repository.new(repo)}/#{tree_sha}", options)['blobs']
end

#raw(repo, sha, options = {}) ⇒ Object



27
28
29
# File 'lib/octokit/client/objects.rb', line 27

def raw(repo, sha, options={})
  get("blob/show/#{Repository.new(repo)}/#{sha}", options)
end

#tree(repo, tree_sha, options = {}) ⇒ Object



5
6
7
# File 'lib/octokit/client/objects.rb', line 5

def tree(repo, tree_sha, options={})
  get("tree/show/#{Repository.new(repo)}/#{tree_sha}", options)['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, options={})
  get("tree/full/#{Repository.new(repo)}/#{tree_sha}", options)['blobs']
end