Class: Bricolage::JobTask
- Inherits:
-
Object
- Object
- Bricolage::JobTask
- Defined in:
- lib/bricolage/taskqueue.rb
Instance Attribute Summary collapse
-
#job ⇒ Object
readonly
Returns the value of attribute job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(job) ⇒ JobTask
constructor
A new instance of JobTask.
- #serialize ⇒ Object
Constructor Details
#initialize(job) ⇒ JobTask
Returns a new instance of JobTask.
138 139 140 |
# File 'lib/bricolage/taskqueue.rb', line 138 def initialize(job) @job = job end |
Instance Attribute Details
#job ⇒ Object (readonly)
Returns the value of attribute job.
142 143 144 |
# File 'lib/bricolage/taskqueue.rb', line 142 def job @job end |
Class Method Details
Instance Method Details
#serialize ⇒ Object
144 145 146 |
# File 'lib/bricolage/taskqueue.rb', line 144 def serialize [@job].join("\t") end |