Sha256: 8a2ae60fe7423815c2f575ece67664754ca694fe15d011c167ba1b6c78a97c24
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
# This service class is intented to provide callback behaviour to handle # an installment successfully being processed module SolidusSubscriptions class SuccessDispatcher < Dispatcher def dispatch installments.each { |i| i.success!(order) } super end private def message "Successfully processed installments: #{installments.map(&:id).join(', ')}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-alpha-0.0.4 | app/models/solidus_subscriptions/success_dispatcher.rb |