Class: SolidusBacktracs::Configuration
- Inherits:
-
Object
- Object
- SolidusBacktracs::Configuration
- Defined in:
- lib/solidus_backtracs/configuration.rb
Instance Attribute Summary collapse
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#api_batch_size ⇒ Object
Returns the value of attribute api_batch_size.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_retries ⇒ Object
Returns the value of attribute api_retries.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#api_shipment_matcher ⇒ Object
Returns the value of attribute api_shipment_matcher.
-
#api_shipment_serializer ⇒ Object
Returns the value of attribute api_shipment_serializer.
-
#api_sync_threshold ⇒ Object
Returns the value of attribute api_sync_threshold.
-
#authentication_password ⇒ Object
Returns the value of attribute authentication_password.
-
#authentication_username ⇒ Object
Returns the value of attribute authentication_username.
-
#capture_at_notification ⇒ Object
Returns the value of attribute capture_at_notification.
-
#default_carrier ⇒ Object
Returns the value of attribute default_carrier.
-
#default_property_name ⇒ Object
Returns the value of attribute default_property_name.
-
#default_rma_type ⇒ Object
Returns the value of attribute default_rma_type.
-
#default_rp_location ⇒ Object
Returns the value of attribute default_rp_location.
-
#default_ship_method ⇒ Object
Returns the value of attribute default_ship_method.
-
#default_status ⇒ Object
Returns the value of attribute default_status.
-
#error_handler ⇒ Object
Returns the value of attribute error_handler.
-
#export_canceled_shipments ⇒ Object
Returns the value of attribute export_canceled_shipments.
-
#proxy_address ⇒ Object
Returns the value of attribute proxy_address.
-
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
-
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
-
#proxy_username ⇒ Object
Returns the value of attribute proxy_username.
-
#shipment_notice_class ⇒ Object
Returns the value of attribute shipment_notice_class.
-
#shippable_skus ⇒ Object
Returns the value of attribute shippable_skus.
-
#sku_map ⇒ Object
Returns the value of attribute sku_map.
-
#ssl_encrypted ⇒ Object
Returns the value of attribute ssl_encrypted.
-
#webhook_password ⇒ Object
Returns the value of attribute webhook_password.
-
#webhook_username ⇒ Object
Returns the value of attribute webhook_username.
-
#weight_units ⇒ Object
Returns the value of attribute weight_units.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/solidus_backtracs/configuration.rb', line 38 def initialize @api_batch_size = 100 @api_sync_threshold = 7.days @error_handler = ->(_error, _extra = {}) { Rails.logger.error "#{error.inspect} (#{extra.inspect})" } @api_shipment_matcher = proc do |backtracs_order, shipments| shipments.find { |shipment| shipment.number == backtracs_order['orderNumber'] } end @shipment_notice_class = 'SolidusBacktracs::ShipmentNotice' end |
Instance Attribute Details
#api_base ⇒ Object
Returns the value of attribute api_base.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_base @api_base end |
#api_batch_size ⇒ Object
Returns the value of attribute api_batch_size.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_batch_size @api_batch_size end |
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_key @api_key end |
#api_retries ⇒ Object
Returns the value of attribute api_retries.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_retries @api_retries end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_secret @api_secret end |
#api_shipment_matcher ⇒ Object
Returns the value of attribute api_shipment_matcher.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_shipment_matcher @api_shipment_matcher end |
#api_shipment_serializer ⇒ Object
Returns the value of attribute api_shipment_serializer.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_shipment_serializer @api_shipment_serializer end |
#api_sync_threshold ⇒ Object
Returns the value of attribute api_sync_threshold.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def api_sync_threshold @api_sync_threshold end |
#authentication_password ⇒ Object
Returns the value of attribute authentication_password.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def authentication_password @authentication_password end |
#authentication_username ⇒ Object
Returns the value of attribute authentication_username.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def authentication_username @authentication_username end |
#capture_at_notification ⇒ Object
Returns the value of attribute capture_at_notification.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def capture_at_notification @capture_at_notification end |
#default_carrier ⇒ Object
Returns the value of attribute default_carrier.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def default_carrier @default_carrier end |
#default_property_name ⇒ Object
Returns the value of attribute default_property_name.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def default_property_name @default_property_name end |
#default_rma_type ⇒ Object
Returns the value of attribute default_rma_type.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def default_rma_type @default_rma_type end |
#default_rp_location ⇒ Object
Returns the value of attribute default_rp_location.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def default_rp_location @default_rp_location end |
#default_ship_method ⇒ Object
Returns the value of attribute default_ship_method.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def default_ship_method @default_ship_method end |
#default_status ⇒ Object
Returns the value of attribute default_status.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def default_status @default_status end |
#error_handler ⇒ Object
Returns the value of attribute error_handler.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def error_handler @error_handler end |
#export_canceled_shipments ⇒ Object
Returns the value of attribute export_canceled_shipments.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def export_canceled_shipments @export_canceled_shipments end |
#proxy_address ⇒ Object
Returns the value of attribute proxy_address.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def proxy_address @proxy_address end |
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def proxy_password @proxy_password end |
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def proxy_port @proxy_port end |
#proxy_username ⇒ Object
Returns the value of attribute proxy_username.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def proxy_username @proxy_username end |
#shipment_notice_class ⇒ Object
Returns the value of attribute shipment_notice_class.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def shipment_notice_class @shipment_notice_class end |
#shippable_skus ⇒ Object
Returns the value of attribute shippable_skus.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def shippable_skus @shippable_skus end |
#sku_map ⇒ Object
Returns the value of attribute sku_map.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def sku_map @sku_map end |
#ssl_encrypted ⇒ Object
Returns the value of attribute ssl_encrypted.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def ssl_encrypted @ssl_encrypted end |
#webhook_password ⇒ Object
Returns the value of attribute webhook_password.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def webhook_password @webhook_password end |
#webhook_username ⇒ Object
Returns the value of attribute webhook_username.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def webhook_username @webhook_username end |
#weight_units ⇒ Object
Returns the value of attribute weight_units.
5 6 7 |
# File 'lib/solidus_backtracs/configuration.rb', line 5 def weight_units @weight_units end |