Sha256: 680b1dcde537e6a94d4ce134e2acae02b0615e31f6ac6da99a9801475392ee27
Contents?: true
Size: 826 Bytes
Versions: 4
Compression:
Stored size: 826 Bytes
Contents
# frozen_string_literal: true module Omdb module Api class Movie attr_reader :actors, :awards, :box_office, :country, :director, :dvd, :error, :genre, :imdb_id, :imdb_rating, :imdb_votes, :language, :metascore, :plot, :poster, :rated, :released, :runtime, :title, :type, :writer, :year def initialize(params) params.each_pair do |k, v| instance_variable_set("@#{k}", v) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
omdb-api-1.4.3 | lib/omdb/api/movie.rb |
omdb-api-1.4.2 | lib/omdb/api/movie.rb |
omdb-api-1.4.1 | lib/omdb/api/movie.rb |
omdb-api-1.4.0 | lib/omdb/api/movie.rb |