Sha256: 4fd2174663f16a2eadd671a90121ba42498a6c46a9e24ed823ca9fd68ee90ffb
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
module Omdb class Movie attr_reader :loaded, :title, :year, :rated, :released, :runtime, :genre, :director, :writer, :actors, :plot, :poster, :imdb_rating, :imdb_votes, :imdb_id, :type, :metascore, :language, :country, :awards def initialize(movie) @title = movie["Title"] @year = movie["Year"].to_i @imdb_id = movie["imdbID"] @type = movie["Type"] @rated = movie["Rated"] @released = movie["Released"] @runtime = movie["Runtime"] @genre = movie["Genre"] @director = movie["Director"] @writer = movie["Writer"] @actors = movie["Actors"] @plot = movie["Plot"] @poster = movie["Poster"] @metascore = movie["Metascore"] @language = movie["Language"] @country = movie["Country"] @awards = movie["Awards"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omdb-1.0.4 | lib/omdb/movie.rb |