Class: Apress::Api::DelayedFireCallback
- Inherits:
-
Object
- Object
- Apress::Api::DelayedFireCallback
- Includes:
- Interactor
- Defined in:
- app/interactors/apress/api/delayed_fire_callback.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/interactors/apress/api/delayed_fire_callback.rb', line 8 def call services = Apress::Api::Callbacks::Config.services(event) return if services.blank? ::Resque.redis.multi do services.each do |service| ::Resque.enqueue( ::Apress::Api::FireCallbackJob, service, event, params ) end end end |