Class: Workarea::SendGiftCardNotifications
- Inherits:
-
Object
- Object
- Workarea::SendGiftCardNotifications
- Includes:
- Sidekiq::CallbacksWorker, Sidekiq::Worker
- Defined in:
- app/workers/workarea/send_gift_card_notifications.rb
Instance Method Summary collapse
Instance Method Details
#perform(gift_card_id) ⇒ Object
8 9 10 11 12 |
# File 'app/workers/workarea/send_gift_card_notifications.rb', line 8 def perform(gift_card_id) card = Payment::GiftCard.find(gift_card_id) return unless send_notification?(card) Storefront::GiftCardMailer.created(card.id.to_s).deliver_now end |