Class: ActiveMerchant::Shipping::BogusCarrier

Inherits:
Carrier show all
Defined in:
lib/active_shipping/shipping/carriers/bogus_carrier.rb

Constant Summary collapse

@@name =
"Bogus Carrier"

Instance Attribute Summary

Attributes inherited from Carrier

#last_request, #test_mode

Instance Method Summary collapse

Methods inherited from Carrier

#initialize, #maximum_weight, #requirements, #valid_credentials?

Constructor Details

This class inherits a constructor from ActiveMerchant::Shipping::Carrier

Instance Method Details

#find_rates(origin, destination, packages, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/active_shipping/shipping/carriers/bogus_carrier.rb', line 8

def find_rates(origin, destination, packages, options = {})
  origin = Location.from(origin)
  destination = Location.from(destination)
  packages = Array(packages)
end