Class: Rollbar::Delay::ActiveJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/rollbar/delay/active_job.rb

Overview

This class provides the ActiveJob async handler. Users can use ActiveJob in order to send the reports to the Rollbar API

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(payload) ⇒ Object



12
13
14
# File 'lib/rollbar/delay/active_job.rb', line 12

def self.call(payload)
  perform_later payload
end

Instance Method Details

#perform(payload) ⇒ Object



8
9
10
# File 'lib/rollbar/delay/active_job.rb', line 8

def perform(payload)
  Rollbar.process_from_async_handler(payload)
end