Module: ActsAsAsync::Helper::InstanceMethods
- Defined in:
- lib/acts_as_async/helper.rb
Instance Method Summary collapse
- #async(method, *args) ⇒ Object
- #async_at(time, method, *args) ⇒ Object
- #async_in(time, method, *args) ⇒ Object
Instance Method Details
#async(method, *args) ⇒ Object
42 43 44 |
# File 'lib/acts_as_async/helper.rb', line 42 def async(method, *args) Resque.enqueue(self.class, id, method, *args) end |
#async_at(time, method, *args) ⇒ Object
46 47 48 |
# File 'lib/acts_as_async/helper.rb', line 46 def async_at(time, method, *args) Resque.enqueue_at(time, self.class, id, method, *args) end |
#async_in(time, method, *args) ⇒ Object
50 51 52 |
# File 'lib/acts_as_async/helper.rb', line 50 def async_in(time, method, *args) Resque.enqueue_in(time, self.class, id, method, *args) end |