Skip to content

ryancw/mbta_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MbtaWrapper

Build Status

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.

Installation

Add this line to your application's Gemfile:

gem 'mbta_wrapper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mbta_wrapper

Usage

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

Contributing

TODO: Implement CommuterRail and Bus (lines), create tests, think of more ways to supply data

If you'd like to help:

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Ruby Boston MBTA wrapper gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages