Class: Datahen::Client::ScraperJobOutput
- Inherits:
-
Base
- Object
- Base
- Datahen::Client::ScraperJobOutput
show all
- Defined in:
- lib/datahen/client/scraper_job_output.rb
Instance Method Summary
collapse
Methods inherited from Base
#auth_token, #auth_token=, #env_api_url, env_auth_token, env_ignore_ssl, #ignore_ssl, #initialize
Instance Method Details
#all(scraper_name, collection = 'default') ⇒ Object
8
9
10
11
|
# File 'lib/datahen/client/scraper_job_output.rb', line 8
def all(scraper_name, collection = 'default')
self.class.get("/scrapers/#{scraper_name}/current_job/output/collections/#{collection}/records", @options)
end
|
#collections(scraper_name) ⇒ Object
13
14
15
|
# File 'lib/datahen/client/scraper_job_output.rb', line 13
def collections(scraper_name)
self.class.get("/scrapers/#{scraper_name}/current_job/output/collections", @options)
end
|
#find(scraper_name, collection, id) ⇒ Object
4
5
6
|
# File 'lib/datahen/client/scraper_job_output.rb', line 4
def find(scraper_name, collection, id)
self.class.get("/scrapers/#{scraper_name}/current_job/output/collections/#{collection}/records/#{id}", @options)
end
|