Movieman
Movieman is wrapper for sites/APIs that provide information about movies.
Installation
Add this line to your application's Gemfile:
gem 'movieman'
And then execute:
$ bundle
Or install it yourself as:
$ gem install movieman
Services
RottenTomatoes
Movieman::RottenTomatoes.config do |c|
c.api_key = "<key here>"
end
movie = Movieman::RottenTomatoes.movie "770672122"
movies = Movieman::RottenTomatoes.search "Matrix"
The Movie Database
API Docs for The Movie Database.
Movieman::Themoviedb.config do |c|
c.api_key = "<key here>"
end
movie = Movieman::Themoviedb.movie "605"
movies = Movieman::Themoviedb.search "Matrix"
New York Times Movie Reviews
Movieman::NYTimes_review.config do |c|
c.api_key = "<key here>"
end
movies = Movieman::NYTimes_review.search "matrix"
The Open Movie Database API
movies = Movieman::OMDBAPI.search "matrix"
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