Class: IronCuke::QueueItem

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_cuke/queue_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
	@worker = worker
	@options = options
	@id = Digest::MD5.hexdigest(self.worker.inspect + self.options.inspect)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/iron_cuke/queue_item.rb', line 5

def id
  @id
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/iron_cuke/queue_item.rb', line 5

def options
  @options
end

#workerObject (readonly)

Returns the value of attribute worker.



5
6
7
# File 'lib/iron_cuke/queue_item.rb', line 5

def worker
  @worker
end