Class: BarnyardHarvester::Queue::Enqueue

Inherits:
Object
  • Object
show all
Defined in:
lib/barnyard_harvester/resque_queue.rb

Instance Method Summary collapse

Constructor Details

#initialize(queue, queued_at, harvester_uuid, change_uuid, crop_number, primary_key, transaction_type, value, old_value) ⇒ Enqueue

Returns a new instance of Enqueue.



21
22
23
24
# File 'lib/barnyard_harvester/resque_queue.rb', line 21

def initialize(queue, queued_at, harvester_uuid, change_uuid, crop_number, primary_key, transaction_type, value, old_value)
  Resque.enqueue(queue, queued_at, harvester_uuid, change_uuid, crop_number, primary_key, transaction_type, value, old_value)
  Resque.enqueue(ChangeLogs, queued_at, harvester_uuid, change_uuid, crop_number, primary_key, transaction_type, value, old_value)
end