Project

omdb

0.02
No commit activity in last 3 years
No release in over 3 years
Easy gateway to the OMDB Api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

 Project Readme

Retired

ATTENTION

THIS GEM IS NO LONGER MAINTAINED. WANT TO TAKE OVER? LET ME KNOW!

Omdb

Code Climate Build Status

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 a 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 an 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