Class: SolidusAfterpay::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_afterpay/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cache_expiryObject



22
23
24
# File 'lib/solidus_afterpay/configuration.rb', line 22

def cache_expiry
  @cache_expiry ||= 1.day
end

#shipping_rate_builder_service_classObject



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_apiObject

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_emailObject



8
9
10
# File 'lib/solidus_afterpay/configuration.rb', line 8

def dummy_email
  '[email protected]'
end

#update_order_attributes_service_classObject



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