Imdb is a gem that fetches and parses data from imdb.
Add this line to your application's Gemfile:
gem 'imdb', github: 'egwspiti/imdb'
And then execute:
$ bundle
One can get info for a movie by providing the movie's id to Imdb.get like this:
require 'imdb'
Imdb::get(id: 'tt2415458')
'tt' can be ommited, thus one could use:
Imdb::get(id: '2415458')
or even:
Imdb::get(id: 2415458)
- Fork it ( http://github.com/egwspiti/imdb/fork )
- 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