Class: Holistics::Model::JobDefinition

Inherits:
Resource
  • Object
show all
Defined in:
lib/holistics/models/job_definition.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

#execute(id) ⇒ Object


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

def execute(id)
  status, body = @client.post("/#{@name}/#{id}/execute.json")
  handle_http_result(status, body)
end