Class: DropboxApi::Endpoints::Files::Download
- Inherits:
-
ContentDownload
- Object
- Base
- ContentDownload
- DropboxApi::Endpoints::Files::Download
- Defined in:
- lib/dropbox_api/endpoints/files/download.rb
Constant Summary collapse
- Method =
:post
- Path =
"/2/files/download".freeze
- ResultType =
DropboxApi::Metadata::File
- ErrorType =
DropboxApi::Errors::DownloadError
Instance Method Summary collapse
-
#download(path, &block) ⇒ Object
Download a file from a user's Dropbox.
Methods inherited from ContentDownload
#build_request, #initialize, #perform_request
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::ContentDownload
Instance Method Details
#download(path, &block) ⇒ Object
Download a file from a user's Dropbox.
11 12 13 |
# File 'lib/dropbox_api/endpoints/files/download.rb', line 11 add_endpoint :download do |path, &block| perform_request({:path => path}, &block) end |