app/models/concerns/spree/shipment_provider/active_shipping.rb
# Returns the handle to carrier specific API
Returns the handle to carrier specific API
Returns the handle to carrier specific API
def io
      @io ||= begin
        secrets = Rails.application.secrets.public_send provider_name.downcase
        options = config secrets
        options[:test] = secrets.has_key?('test_mode') ? secrets['test_mode'] : true
        ::ActiveShipping.const_get(provider_name).new(options).tap {|io| io.logger = Rails.logger}
      end
    end
def io @io ||= begin secrets = Rails . application . secrets . public_send provider_name . downcase options = config secrets options [ :test ] = secrets . has_key? ( 'test_mode' ) ? secrets [ 'test_mode' ] : true :: ActiveShipping . const_get ( provider_name ) . new ( options ) . tap { | io | io . logger = Rails . logger } end end
Returns the handle to carrier specific API
Returns the handle to carrier specific API