No description, website, or topics provided.
Ruby
Latest commit 1c52b36 Jul 29, 2014 @farski Merge pull request #2 from Tommyixi/master
Added a require csv to open the csv file. Also changed the CSV path
Permalink
Failed to load latest commit information.
data Refactoring Jan 25, 2012
lib Added a require csv to open the csv file. Also changed the CSV path Jul 29, 2014
.gitignore Ignore Jan 25, 2012
Gemfile Init Jan 24, 2012
LICENSE Init Jan 24, 2012
README.md Init Jan 24, 2012
Rakefile Init Jan 24, 2012
mbta.gemspec Forgot dependencies in spec Feb 18, 2012

README.md

Mbta

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'mbta'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mbta

Usage

Basic example:

json = HTTParty.get('http://developer.mbta.com/Data/Red.json') MBTA::HeavyRail::System::MAP.lines['Red'].parse_announcements(json)

p MBTA::RedLine['Harvard'][:northbound].predictions.first.time

Contributing

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