Class: Datahen::Client::JobOutput

Inherits:
Base
  • Object
show all
Defined in:
lib/datahen/client/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

Constructor Details

This class inherits a constructor from Datahen::Client::Base

Instance Method Details

#all(job_id, collection = 'default') ⇒ Object



8
9
10
11
# File 'lib/datahen/client/job_output.rb', line 8

def all(job_id, collection = 'default')

  self.class.get("/jobs/#{job_id}/output/collections/#{collection}/records", @options)
end

#collections(job_id) ⇒ Object



13
14
15
# File 'lib/datahen/client/job_output.rb', line 13

def collections(job_id)
  self.class.get("/jobs/#{job_id}/output/collections", @options)
end

#find(job_id, collection, id) ⇒ Object



4
5
6
# File 'lib/datahen/client/job_output.rb', line 4

def find(job_id, collection, id)
  self.class.get("/jobs/#{job_id}/output/collections/#{collection}/records/#{id}", @options)
end