Module: Octokit::Client::Downloads
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/downloads.rb
Overview
Methods for the Repo Downloads API
Instance Method Summary collapse
-
#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
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
44 45 46 |
# 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
31 32 33 |
# 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
17 18 19 |
# File 'lib/octokit/client/downloads.rb', line 17 def downloads(repo, ={}) paginate "#{Repository.path repo}/downloads", end |