Class: Nuntius::DeliverInboundMessageService

Inherits:
ApplicationService show all
Defined in:
app/services/nuntius/deliver_inbound_message_service.rb

Instance Method Summary collapse

Instance Method Details

#performObject



9
10
11
12
13
# File 'app/services/nuntius/deliver_inbound_message_service.rb', line 9

def perform
  context.inbound_message.update!(status: "delivered")
  result = Nuntius::BaseMessageBox.deliver(context.inbound_message)
  context.inbound_message.update!(status: "processed") if result
end