Module: ActiveMerchant::Shipping::Base
- Defined in:
- lib/active_shipping/shipping/base.rb
Class Method Summary collapse
Class Method Details
.carrier(name) ⇒ Object
7 8 9 10 |
# File 'lib/active_shipping/shipping/base.rb', line 7 def self.carrier(name) ActiveMerchant::Shipping::Carriers.all.find {|c| c.name.downcase == name.to_s.downcase} || raise(NameError, "unknown carrier #{name}") end |