Sha256: 60411bdc20ae0f1eecf50425fc05415dfdee92897a2d362d4df122eff9b3fd51
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# Omdb [![Code Climate](https://codeclimate.com/github/jvanbaarsen/omdb.png)](https://codeclimate.com/github/jvanbaarsen/omdb) [![Build Status](https://travis-ci.org/jvanbaarsen/omdb.png?branch=master)](https://travis-ci.org/jvanbaarsen/omdb) This gem is an easy way to access the OMDB Api (http://www.omdbapi.com) See: https://gist.github.com/jvanbaarsen/6142607 for an example ## 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') Omdb::Api.new.fetch('MOVIE NAME', YEAR (Optional)) 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, :metascore, :language, :country, :awards ## 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omdb-1.0.4 | README.md |