Tfl Gem
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request