Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (34 sloc) 1.74 KB
== Welcome to Shipping
Shipping is a module that connects APIs for various shippers like UPS and FedEx. Shipping currently supports pricing, shipping, labeling and voiding for UPS and FedEx through their XML APIs.
== Download
* gem install shipping
* svn co
=== Usage
There is going to be some data that will persist for all connections. For example, you will not want to repeat the fedex account number every time in your implementation code. To set default values, setup a file called .shipping.yml in the home directory of the user who will be using this library. An example file would be:
fedex_account: 1234556
fedex_meter: 387878
ups_license_number: 7B4F74E3075AEEFF
ups_user: username
ups_password: password
ups_shipper_number: 855AA0
You can set as many default values as you would like in this file.
require 'shipping'
ups = :zip => 97202, :state => "OR", :sender_zip => 10001, :weight => 2
ups.price => 5.8
ups.valid_address? => false = "Portland"
ups.valid_address? => true
Alternately, you can instantiate the base class and then see both UPS and FedEx information.
ship = :zip => 97202, :state => "OR", :sender_zip => 10001, :weight => 2 => 5.8 => 5.8 = "Portland" => true
== Authors
* Lucas Carlson (
* Jimmy Baker (
* Noah Zoschke (
This library is released under the terms of the GNU LGPL.