Sha256: ac456fe58ec290a2e020a9d5b082fde999b0259b964f46bd143732b66921bb57
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
# Omdb [](https://codeclimate.com/repos/51dc6afbc7f3a37a72002061/feed) [](https://travis-ci.org/jvanbaarsen/omdb) This gem is an easy way to access the OMDB Api (http://www.omdbapi.com) ## Installation Add this line to your application's Gemfile: gem 'omdb' And then execute: $ bundle Or install it yourself as: $ gem install omdb ## Usage ### Finding movies Omdb::Api.new.search('MOVIE NAME') This will return an hash with movies ### Fetching movie To fetch a single movie (when you know the full name): Omdb::Api.new.fetch('MOVIE NAME') This will return a Omdb::Movie object with the following properties: :loaded, :title, :year, :rated, :released, :runtime, :genre, :director, :writer, :actors, :plot, :poster, :imdb_rating, :imdb_votes, :imdb_id, :type ## 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omdb-1.0.2 | README.md |
omdb-1.0.1 | README.md |
omdb-1.0.0 | README.md |