Class: Calculator::Fedex::Base

Inherits:
ActiveShipping
  • Object
show all
Defined in:
app/models/calculator/fedex/base.rb

Instance Method Summary collapse

Instance Method Details

#carrierObject



2
3
4
5
6
7
# File 'app/models/calculator/fedex/base.rb', line 2

def carrier
  ActiveMerchant::Shipping::FedEx.new(:key => Spree::ActiveShipping::Config[:fedex_key], 
                                      :password => Spree::ActiveShipping::Config[:fedex_password], 
                                      :account => Spree::ActiveShipping::Config[:fedex_account],
                                      :login => Spree::ActiveShipping::Config[:fedex_login])      
end