Module: Sidekiq::Extensions::ActionMailer
- Defined in:
- lib/sidekiq/extensions/action_mailer.rb
Instance Method Summary collapse
- #sidekiq_delay(options = {}) ⇒ Object (also: #delay)
- #sidekiq_delay_for(interval, options = {}) ⇒ Object (also: #delay_for)
- #sidekiq_delay_until(timestamp, options = {}) ⇒ Object (also: #delay_until)
Instance Method Details
#sidekiq_delay(options = {}) ⇒ Object Also known as: delay
31 32 33 |
# File 'lib/sidekiq/extensions/action_mailer.rb', line 31 def sidekiq_delay( = {}) Proxy.new(DelayedMailer, self, ) end |
#sidekiq_delay_for(interval, options = {}) ⇒ Object Also known as: delay_for
35 36 37 |
# File 'lib/sidekiq/extensions/action_mailer.rb', line 35 def sidekiq_delay_for(interval, = {}) Proxy.new(DelayedMailer, self, .merge("at" => Time.now.to_f + interval.to_f)) end |
#sidekiq_delay_until(timestamp, options = {}) ⇒ Object Also known as: delay_until
39 40 41 |
# File 'lib/sidekiq/extensions/action_mailer.rb', line 39 def sidekiq_delay_until(, = {}) Proxy.new(DelayedMailer, self, .merge("at" => .to_f)) end |