Module: Octokit::Client::Downloads
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/downloads.rb |
Overview
Methods for the Repo Downloads API
Instance Method Summary
-
#delete_download(repo, id, options = {}) ⇒ Boolean
deprecated
Deprecated.
As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
-
#download(repo, id, options = {}) ⇒ Sawyer::Resource
deprecated
Deprecated.
As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
-
#downloads(repo, options = {}) ⇒ Array
(also: #list_downloads)
deprecated
Deprecated.
As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
-
#list_downloads(repo, options = {})
Alias for #downloads.
Instance Method Details
#delete_download(repo, id, options = {}) ⇒ Boolean
Deprecated.
As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
Delete a single download for a repository
# File 'lib/octokit/client/downloads.rb', line 44
def delete_download(repo, id, = {}) boolean_from_response :delete, "#{Repository.path repo}/downloads/#{id}", end
#download(repo, id, options = {}) ⇒ Sawyer::Resource
Deprecated.
As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
Get single download for a repository
# File 'lib/octokit/client/downloads.rb', line 31
def download(repo, id, = {}) get "#{Repository.path repo}/downloads/#{id}", end
#downloads(repo, options = {}) ⇒ Array
Also known as: #list_downloads
Deprecated.
As of December 11th, 2012: https://github.com/blog/1302-goodbye-uploads
List available downloads for a repository
# File 'lib/octokit/client/downloads.rb', line 17
def downloads(repo, = {}) paginate "#{Repository.path repo}/downloads", end
#list_downloads(repo, options = {})
Alias for #downloads.
# File 'lib/octokit/client/downloads.rb', line 20
alias list_downloads downloads