Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/farski/mbta
https://github.com/farski/mbta
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/farski/mbta
- Owner: farski
- License: mit
- Created: 2012-01-24T21:26:48.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-07-29T18:45:57.000Z (over 10 years ago)
- Last Synced: 2024-11-14T05:43:50.468Z (2 months ago)
- Language: Ruby
- Size: 132 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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