class Rollbar::Delay::GirlFriday
Public Class Methods
Source
# File lib/rollbar/delay/girl_friday.rb, line 9 def call(payload) new.call(payload) end
Source
# File lib/rollbar/delay/girl_friday.rb, line 13 def queue @queue ||= queue_class.new(nil, :size => 5) do |payload| Rollbar.process_from_async_handler(payload) # Do not rescue. GirlFriday will call the error handler. end end
Source
# File lib/rollbar/delay/girl_friday.rb, line 5 def queue_class ::GirlFriday::WorkQueue end
Public Instance Methods
Source
# File lib/rollbar/delay/girl_friday.rb, line 22 def call(payload) self.class.queue.push(payload) end