Class: Coconut::Job
- Inherits:
-
Object
- Object
- Coconut::Job
- Defined in:
- lib/coconutrb.rb
Class Method Summary collapse
- .create(options = {}) ⇒ Object
- .get(jid, api_key = nil) ⇒ Object
- .get_all_metadata(jid, api_key = nil) ⇒ Object
- .get_metadata_for(jid, source_or_output, api_key = nil) ⇒ Object
Class Method Details
.create(options = {}) ⇒ Object
119 120 121 |
# File 'lib/coconutrb.rb', line 119 def self.create(={}) Coconut.submit(Coconut.config(), [:api_key]) end |
.get(jid, api_key = nil) ⇒ Object
123 124 125 |
# File 'lib/coconutrb.rb', line 123 def self.get(jid, api_key=nil) Coconut.get("/v1/jobs/#{jid}", api_key) end |