Class: NowAndLater::Enqueue::WithResque

Inherits:
Service
  • Object
show all
Defined in:
lib/now_and_later/enqueue/with_resque.rb

Overview

NowAndLater::Enqueue::WithResque service enqueues any service with Resque encodes any ActiveRecord args into a hash to work with Resque

Instance Method Summary collapse

Methods inherited from Service

can_find, #initialize, later, now, takes

Constructor Details

This class inherits a constructor from NowAndLater::Service

Instance Method Details

#runObject



9
10
11
# File 'lib/now_and_later/enqueue/with_resque.rb', line 9

def run
  Resque.enqueue @service, *encoded_args
end