Ruby client for the All Purpose Removals and Storage freight API.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install allpurpose
Obtaining a quote from All Purpose, you will need to pass in the destination suburb name, destination post code and volume of your items that you want shipped.
All Purpose API assumes that your items will be picked up from the Brisbane Metro area only so there is no need to define pickup destination.
Here is an example of getting a quote from All Purpose ...
suburb = 'Brisbane Market' post_code = 4106 # post code for Brisbane Market volume = 1.58 ap = Allpurpose::Quote.quote(suburb, post_code, volume) puts ap.amount
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request