tvrage_api is a simple ruby client for accessing TV shows information from the tvrage.com API.
You can add it to your Gemfile with:
gem 'tvrage_api'
Run the bundle command to install it.
You have two way for access to api:
- I way (create client class, one entry point)
client = TvrageApi::Client.new
client.info # => #<TvrageApi::Info>
client.recap # => #<TvrageApi::Recap>
client.schedule # => #<TvrageApi::Schedule>
client.search # => #<TvrageApi::Search>
client.show # => #<TvrageApi::Show>
client.update # => #<TvrageApi::Update>
- II way (direct access to api class, many entry points)
TvrageApi::Info.new
TvrageApi::Recap.new
TvrageApi::Schedule.new
TvrageApi::Search.new
TvrageApi::Show.new
TvrageApi::Update.new
For almost all method you can pass hash attributes or multiple attributes specified in method comment.
For method attributes read https://github.com/tvapi/tvrage_api/blob/master/lib/tvrage_api/info.rb
- find
- find_url
For method attributes read https://github.com/tvapi/tvrage_api/blob/master/lib/tvrage_api/recap.rb
- all
- all_url
- show
- show_url
- last
- last_url
For method attributes read https://github.com/tvapi/tvrage_api/blob/master/lib/tvrage_api/schedule.rb
- quick
- quick_url
- full
- full_url
For method attributes read https://github.com/tvapi/tvrage_api/blob/master/lib/tvrage_api/search.rb
- by_name
- by_name_url
- full_by_name
- full_by_name_url
For method attributes read https://github.com/tvapi/tvrage_api/blob/master/lib/tvrage_api/show.rb
- find
- find_url
- find_full
- find_full_url
- episodes
- episodes_url
- episode
- episode_url
- all
- all_url
For method attributes read https://github.com/tvapi/tvrage_api/blob/master/lib/tvrage_api/update.rb
- last
- last_url
- 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