Class: ActiveShipping::BogusCarrier

Inherits:
Carrier
  • Object
show all
Defined in:
lib/active_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

#available_services, #cancel_shipment, #create_shipment, default_location, #find_tracking_info, #initialize, #maximum_address_field_length, #maximum_weight, #requirements, #save_request, #timestamp_from_business_day, #valid_credentials?

Constructor Details

This class inherits a constructor from ActiveShipping::Carrier

Instance Method Details

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



6
7
8
9
10
# File 'lib/active_shipping/carriers/bogus_carrier.rb', line 6

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