controlshift/prague-server

View on GitHub
app/actions/notification_action.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Schedule jobs to update the organization's CRM and send the customer a receipt.

class NotificationAction
  attr_accessor :charge

  def initialize(charge)
    @charge = charge
  end

  def call
    CrmNotificationWorker.perform_async(charge.id)
    ChargeNotificationMailer.send_receipt(charge.id).deliver_later
  end
end