Class: Datahen::Client::ScraperExport
- Inherits:
-
Base
- Object
- Base
- Datahen::Client::ScraperExport
show all
- Defined in:
- lib/datahen/client/scraper_export.rb
Constant Summary
Constants inherited
from Base
Base::CHECK_EMPTY_BODY, Base::CHECK_NIL, Base::DEFAULT_RETRY_LIMIT
Instance Method Summary
collapse
Methods inherited from Base
#auth_token, #auth_token=, #default_retry_limit, #env_api_url, env_auth_token, env_ignore_ssl, #ignore_ssl, #initialize, #left_merge, random_delay, #retry
Instance Method Details
#all(scraper_name, opts = {}) ⇒ Object
4
5
6
7
|
# File 'lib/datahen/client/scraper_export.rb', line 4
def all(scraper_name, opts={})
params = @options.merge(opts)
self.class.get("/scrapers/#{scraper_name}/exports", params)
end
|
#create(scraper_name, exporter_name) ⇒ Object
13
14
15
|
# File 'lib/datahen/client/scraper_export.rb', line 13
def create(scraper_name, exporter_name)
self.class.post("/scrapers/#{scraper_name}/exports/#{exporter_name}", @options)
end
|
#download(export_id) ⇒ Object
17
18
19
|
# File 'lib/datahen/client/scraper_export.rb', line 17
def download(export_id)
self.class.get("/scrapers/exports/#{export_id}/download", @options)
end
|
#find(export_id) ⇒ Object
9
10
11
|
# File 'lib/datahen/client/scraper_export.rb', line 9
def find(export_id)
self.class.get("/scrapers/exports/#{export_id}", @options)
end
|