Class: SpreeCmCommissioner::OrderRequestedNotificationSender

Inherits:
BaseInteractor
  • Object
show all
Defined in:
app/interactors/spree_cm_commissioner/order_requested_notification_sender.rb

Instance Method Summary collapse

Instance Method Details

#callObject



3
4
5
6
7
8
9
# File 'app/interactors/spree_cm_commissioner/order_requested_notification_sender.rb', line 3

def call
  notification = SpreeCmCommissioner::OrderRequestedNotification.with(
    order: context.order
  ).deliver_later(context.order.user)

  context.notification = notification
end