Project

omdb-api

0.01
No release in over 3 years
Low commit activity in last 3 years
Ruby interface for the OMDB API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

~> 4.2.10
~> 0.15
 Project Readme

Omdb Api

Ruby interface to the Open Movie Database API.

Features

  • #find_by_id
  • #find_by_title
  • #search

Usage

require 'omdb/api'

client = Omdb::Api::Client.new(api_key: [your API key])

# Or configure with a block
client = Omdb::Api::Client.new do |config|
  config.api_key = api_key
end

client.find_by_title('star wars')
# => #<Omdb::Api::Movie:0x007f9a7d453cf0 @actors="Harrison Ford", ...>

client.find_by_id('tt0083929')
# => #<Omdb::Api::Movie:0x007f960a648f28 @actors="Sean Penn, Jennifer Jason Leigh, Judge Reinhold, Robert Romanus", ...>

client.search('indiana jones')
# => [#<Omdb::Api::Movie:0x007ffec28ad1a8 @title="Indiana Jones and the Last Crusade", ...>, ...]

Installation

gem 'omdb-api', '~> 1.0.0'

License

The gem is available as open source under the terms of the MIT License.