Class: IronCuke::QueueItem
- Inherits:
-
Object
- Object
- IronCuke::QueueItem
- Defined in:
- lib/iron_cuke/queue_item.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#worker ⇒ Object
readonly
Returns the value of attribute worker.
Instance Method Summary collapse
-
#initialize(worker, options) ⇒ QueueItem
constructor
A new instance of QueueItem.
Constructor Details
#initialize(worker, options) ⇒ QueueItem
Returns a new instance of QueueItem.
6 7 8 9 10 |
# File 'lib/iron_cuke/queue_item.rb', line 6 def initialize(worker, ) @worker = worker @options = @id = Digest::MD5.hexdigest(self.worker.inspect + self..inspect) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/iron_cuke/queue_item.rb', line 5 def id @id end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/iron_cuke/queue_item.rb', line 5 def @options end |
#worker ⇒ Object (readonly)
Returns the value of attribute worker.
5 6 7 |
# File 'lib/iron_cuke/queue_item.rb', line 5 def worker @worker end |