Class: SolidusSubscriptions::Dispatcher
- Inherits:
-
Object
- Object
- SolidusSubscriptions::Dispatcher
- Defined in:
- app/models/solidus_subscriptions/dispatcher.rb
Direct Known Subclasses
FailureDispatcher, OutOfStockDispatcher, PaymentFailedDispatcher, SuccessDispatcher
Instance Attribute Summary collapse
-
#installments ⇒ Object
readonly
Returns the value of attribute installments.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
- #dispatch ⇒ Object
-
#initialize(installments, order = nil) ⇒ SolidusSubscriptions::FailureDispatcher
constructor
Get a new instance of the FailureDispatcher.
Constructor Details
#initialize(installments, order = nil) ⇒ SolidusSubscriptions::FailureDispatcher
Get a new instance of the FailureDispatcher
11 12 13 14 |
# File 'app/models/solidus_subscriptions/dispatcher.rb', line 11 def initialize(installments, order = nil) @installments = installments @order = order end |
Instance Attribute Details
#installments ⇒ Object (readonly)
Returns the value of attribute installments.
3 4 5 |
# File 'app/models/solidus_subscriptions/dispatcher.rb', line 3 def installments @installments end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
3 4 5 |
# File 'app/models/solidus_subscriptions/dispatcher.rb', line 3 def order @order end |
Instance Method Details
#dispatch ⇒ Object
16 17 18 |
# File 'app/models/solidus_subscriptions/dispatcher.rb', line 16 def dispatch notify end |