Tfl Gem

Build Status Gem Version Code Climate Test Coverage

Installation

Add this line to your application's Gemfile:

gem 'tfl'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tfl

Usage

Configure client

In order to use the Tfl API, you have to setup your credentials.

The block way

client = Tfl::Client.new do |config|
  config.app_id = "...",
  config.app_key = "..."
end

The hash way

credientials = {
  :app_id => "...",
  :app_key => "..."
}

client = Tfl::Client.new(credentials)

Contributing

  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