Class: Cb::Clients::Job
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.get(oauth_token, args = {}) ⇒ Object
16 17 18 19 20 |
# File 'lib/cb/clients/job.rb', line 16 def get(oauth_token, args = {}) response = cb_client.cb_get(uri_get(args[:did]), headers: headers(oauth_token), query: args) not_found_check(response) response end |
.report(args = {}) ⇒ Object
22 23 24 |
# File 'lib/cb/clients/job.rb', line 22 def report(args = {}) cb_client.cb_post(Cb.configuration.uri_report_job, body: report_body(args)) end |