WIP - this is not yet ready for use
Make accessing https://api.at.govt.nz/ more pleasant, and more Ruby-esque
Add this line to your application's Gemfile:
gem 'auckland_transport'
And then execute:
$ bundle
Or install it yourself as:
$ gem install auckland_transport
You need an API key to access the AT api, which you can get by registering here:
https://api.at.govt.nz/registration/
- Fork it ( http://github.com/{my-github-username}/auckland_transport/fork )
- 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
lazy_load.rb uses the ghost object pattern eloquently explained by Avdi Grimm in his Ruby Tapas Episode 183