Module: Dripper::ResqueScheduler::InstanceMethods

Defined in:
lib/dripper/resque_scheduler.rb

Instance Method Summary collapse

Instance Method Details

#clear!Object



14
15
16
# File 'lib/dripper/resque_scheduler.rb', line 14

def clear!
  Resque.remove_delayed(self.class, id: @instance.id)
end

#enqueue(time) ⇒ Object



10
11
12
# File 'lib/dripper/resque_scheduler.rb', line 10

def enqueue(time)
  Resque.enqueue_at(time, self.class, id: @instance.id)
end