Allpurpose
Ruby client for the All Purpose Removals and Storage freight API.
Installation
Add this line to your application's Gemfile:
gem 'allpurpose'
And then execute:
$ bundle
Or install it yourself as:
$ gem install allpurpose
Usage
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
Contributing
- 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