Pactrack
Ruby API Wrapper for the Swedish postal service
Installation
Add this line to your application's Gemfile:
gem 'pactrack'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pactrack
Usage
# Get a list of all events
puts Pactrack::Package.new('87323423640SE').events;
# Get weight of package
puts Pactrack::Package.new('87323423640SE').weight;
# Get status as string
puts Pactrack::Package.new('87323423640SE').status;
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request