Class: SpreeCmCommissioner::Guests::SendDynamicFieldNotification

Inherits:
Object
  • Object
show all
Includes:
Spree::ServiceModule::Base
Defined in:
app/services/spree_cm_commissioner/guests/send_dynamic_field_notification.rb

Instance Method Summary collapse

Instance Method Details

#call(guest:) ⇒ Object



6
7
8
9
10
11
12
# File 'app/services/spree_cm_commissioner/guests/send_dynamic_field_notification.rb', line 6

def call(guest:)
  notification = SpreeCmCommissioner::GuestDynamicFieldNotification.with(
    guest: guest
  ).deliver_later(guest.user)

  success(notification: notification)
end