Class: Edi::RmaReceivedHandler
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Edi::RmaReceivedHandler
- Includes:
- RailsEventStore::AsyncHandler
- Defined in:
- app/subscribers/edi/rma_received_handler.rb
Instance Method Summary collapse
Instance Method Details
#perform(event) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/subscribers/edi/rma_received_handler.rb', line 7 def perform(event) rma = Rma.find_by(id: event.data[:rma_id]) return unless rma Edi::RmaEventProcessor.new.process_received(rma) rescue StandardError => e ErrorReporting.error(e) raise end |