Class: Puree::Extractor::Download
- Inherits:
-
Object
- Object
- Puree::Extractor::Download
- Includes:
- API::Authentication
- Defined in:
- lib/puree/extractor/download.rb
Overview
Download extractor.
Instance Method Summary collapse
-
#get(limit: 0, offset: 0, resource:) ⇒ Array<Puree::Model::DownloadHeader>
(also: #find)
Get download statistics.
-
#initialize(config) ⇒ Download
constructor
A new instance of Download.
Constructor Details
Instance Method Details
#get(limit: 0, offset: 0, resource:) ⇒ Array<Puree::Model::DownloadHeader> Also known as: find
Get download statistics. Only for Datasets.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/puree/extractor/download.rb', line 23 def get(limit: 0, offset: 0, resource:) raise 'Cannot perform a request without a configuration' if @config.nil? @response = @request.get rendering: :system, limit: limit, offset: offset, resource_type: @resource_type, content_type: service_family(resource) set_content @response.body end |