Class: Rmb::Job
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#job_type ⇒ Object
Returns the value of attribute job_type.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
-
#pingback_url ⇒ Object
Returns the value of attribute pingback_url.
-
#state ⇒ Object
Returns the value of attribute state.
-
#using ⇒ Object
Returns the value of attribute using.
Class Method Summary collapse
-
.create(job_type, using, inputs, outputs, pingback_url = nil) ⇒ Object
Creates a job.
-
.find(id, drop_name, asset_name_or_id) ⇒ Object
Finds a job for a drop and asset.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Rmb::Resource
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def id @id end |
#inputs ⇒ Object
Returns the value of attribute inputs.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def inputs @inputs end |
#job_type ⇒ Object
Returns the value of attribute job_type.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def job_type @job_type end |
#outputs ⇒ Object
Returns the value of attribute outputs.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def outputs @outputs end |
#pingback_url ⇒ Object
Returns the value of attribute pingback_url.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def pingback_url @pingback_url end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def state @state end |
#using ⇒ Object
Returns the value of attribute using.
3 4 5 |
# File 'lib/rmb/job.rb', line 3 def using @using end |
Class Method Details
.create(job_type, using, inputs, outputs, pingback_url = nil) ⇒ Object
Creates a job
11 12 13 14 15 16 17 18 19 |
# File 'lib/rmb/job.rb', line 11 def self.create(job_type,using,inputs,outputs,pingback_url=nil) Rmb::Resource.client.create_job({ :job_type => job_type, :using => using, :inputs => inputs, :outputs => outputs, :pingback_url => pingback_url }) end |