Module: SolidusSubscriptions::Config

Defined in:
lib/solidus_subscriptions/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.failure_dispatcher_classObject


18
19
20
# File 'lib/solidus_subscriptions/config.rb', line 18

def failure_dispatcher_class
  @failure_dispatcher_class ||= ::SolidusSubscriptions::FailureDispatcher
end

.out_of_stock_dispatcher=(value) ⇒ Object (writeonly)

This handler is called when installemnts cannot be fulfilled due to lack of stock


30
31
32
# File 'lib/solidus_subscriptions/config.rb', line 30

def out_of_stock_dispatcher=(value)
  @out_of_stock_dispatcher = value
end

.payment_failed_dispatcher_classObject


24
25
26
# File 'lib/solidus_subscriptions/config.rb', line 24

def payment_failed_dispatcher_class
  @payment_failed_dispatcher_class ||= ::SolidusSubscriptions::PaymentFailedDispatcher
end

.success_dispatcher_classObject


11
12
13
# File 'lib/solidus_subscriptions/config.rb', line 11

def success_dispatcher_class
  @success_dispatcher_class ||= ::SolidusSubscriptions::SuccessDispatcher
end

Class Method Details

.default_gateway(&block) ⇒ Object


35
36
37
38
# File 'lib/solidus_subscriptions/config.rb', line 35

def default_gateway(&block)
  return @gateway.call unless block_given?
  @gateway = block
end

.out_of_stock_dispatcher_classObject


31
32
33
# File 'lib/solidus_subscriptions/config.rb', line 31

def out_of_stock_dispatcher_class
  @out_of_stock_dispatcher_class ||= ::SolidusSubscriptions::OutOfStockDispatcher
end