Class: Holistics::Model::Job

Inherits:
Resource show all
Defined in:
lib/holistics/models/job.rb

Instance Attribute Summary

Attributes inherited from Resource

#errors, #name

Instance Method Summary collapse

Methods inherited from Resource

#all, #delete, #find, #initialize

Constructor Details

This class inherits a constructor from Holistics::Model::Resource

Instance Method Details

#cancel(id, params = {}) ⇒ Object


9
10
11
12
# File 'lib/holistics/models/job.rb', line 9

def cancel(id, params = {})
  status, body = @client.put("/jobs/#{id}/cancel.json", { params: params })
  handle_http_result(status, body)
end

#logs(id, params = {}) ⇒ Object


4
5
6
7
# File 'lib/holistics/models/job.rb', line 4

def logs(id, params = {})
  status, body = @client.get("/jobs/#{id}/logs.json", { params: params })
  handle_http_result(status, body)
end