weese is a simple Ruby interface to the Washington Metropolitan Area Transit Authority API.
- Ruby 2.5+
Add this line to your application's Gemfile:
gem 'weese'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install weese
require 'weese'
client = Weese::Rail::MetroRail.new api_key
trains = client.next_trains Weese::Rail::Station::A01
weese breaks the WMATA API into two components: MetroRail
and MetroBus
.
Provides access to all MetroRail related endpoints.
See Getting Started
Provides access to all MetroBus related endpoints.
require 'weese'
client = Weese::Rail::MetroBus.new api_key
routes = client.routes
All testing is done with vcr, and can be run with rake test
.
- Faraday
Feel free to email questions and comments to emma@emma.sh
weese is released under the MIT license. See LICENSE for details.