Module: Delayed::MessageSending

Defined in:
lib/delayed/message_sending.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#send_at(time, method, *args) ⇒ Object



7
8
9
# File 'lib/delayed/message_sending.rb', line 7

def send_at(time, method, *args)
  Delayed::Job.enqueue(Delayed::PerformableMethod.new(self, method.to_sym, args), 0, time)
end

#send_later(method, *args) ⇒ Object



3
4
5
# File 'lib/delayed/message_sending.rb', line 3

def send_later(method, *args)
  Delayed::Job.enqueue Delayed::PerformableMethod.new(self, method.to_sym, args)
end