Class: SolidusAfterpay::Configuration
- Inherits:
-
Object
- Object
- SolidusAfterpay::Configuration
- Defined in:
- lib/solidus_afterpay/configuration.rb
Instance Attribute Summary collapse
- #cache_expiry ⇒ Object
- #shipping_rate_builder_service_class ⇒ Object
-
#use_solidus_api ⇒ Object
Returns the value of attribute use_solidus_api.
Instance Method Summary collapse
Instance Attribute Details
#cache_expiry ⇒ Object
22 23 24 |
# File 'lib/solidus_afterpay/configuration.rb', line 22 def cache_expiry @cache_expiry ||= 1.day end |
#shipping_rate_builder_service_class ⇒ Object
12 13 14 15 |
# File 'lib/solidus_afterpay/configuration.rb', line 12 def shipping_rate_builder_service_class @shipping_rate_builder_service_class ||= 'SolidusAfterpay::ShippingRateBuilderService' @shipping_rate_builder_service_class.constantize end |
#use_solidus_api ⇒ Object
Returns the value of attribute use_solidus_api.
5 6 7 |
# File 'lib/solidus_afterpay/configuration.rb', line 5 def use_solidus_api @use_solidus_api end |
Instance Method Details
#dummy_email ⇒ Object
8 9 10 |
# File 'lib/solidus_afterpay/configuration.rb', line 8 def dummy_email '[email protected]' end |
#update_order_attributes_service_class ⇒ Object
17 18 19 20 |
# File 'lib/solidus_afterpay/configuration.rb', line 17 def update_order_attributes_service_class @update_order_attributes_service_class ||= 'SolidusAfterpay::UpdateOrderAttributesService' @update_order_attributes_service_class.constantize end |