Ruby MBTA API wrapper gem, not much is really built yet but maybe it will be soon. If you think of any features you want, let me know.
Add this line to your application's Gemfile:
gem 'mbta_wrapper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mbta_wrapper
This gem provides super easy access to the MBTA's API.
MbtaWrapper::Subway # Built
MbtaWrapper::CommuterRail # Not Built
MbtaWrapper::Bus # Not Built
MbtaWrapper::SubwayLine # Built
MbtaWrapper::CommuterRailLine # Not Built
MbtaWrapper::BusLine # Not Built
To view the current number of red line trains running:
MbtaWrapper.red_line.active_trains
To create an array of current trains on the red line:
MbtaWrapper.red_line.current_trains
TODO: Implement CommuterRail and Bus (lines), create tests, think of more ways to supply data
If you'd like to help:
- 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