lucashour / fake-imdb

Fake gem for academic purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imdb

The gem returns movies' and directors' identifiers. It's a fake gem with academic purposes.

Installation

Add this line to your application's Gemfile:

gem 'imdb', git: 'https://github.com/lucashour/fake-imdb'

And then execute:

$ bundle install

Usage

require 'imdb/connector'

Imdb::Connector.new('Star_Wars').movie
Imdb::Connector.new('George_Lucas').director

It does not support queries with spaces or some punctuation symbols, so you need to replace them with the symbol _. If the received query is incorrect, then one of the following errors will be raised:

Imdb::SpacesError
Imdb::PunctuationError

Invalid punctuation symbols: ¿, ?, ¡, !, ., \ and -.

License

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

About

Fake gem for academic purposes

License:MIT License


Languages

Language:Ruby 96.1%Language:Shell 3.9%