lib/movlog/movie.rb in movlog-0.2.11 vs lib/movlog/movie.rb in movlog-0.2.12

- old
+ new

@@ -3,17 +3,19 @@ module Movlog # Movie info class Movie attr_reader :imdb_id, :title, :year, :actors, :poster, :plot, :location - + attr_reader :response + def initialize(data:) @imdb_id = data['imdbID'] @title = data['Title'] @year = data['Year'] @actors = data['Actors'] @poster = data['Poster'] @plot = data['Plot'] + @response = data['Response'] end def self.find(t:) movie_data = OmdbApi.movie_info(t) new(data: movie_data)