lib/movlog/movie.rb in movlog-0.3.5 vs lib/movlog/movie.rb in movlog-0.3.6

- old
+ new

@@ -3,13 +3,13 @@ module Movlog # Movie info class Movie attr_reader :imdb_id, :type, :title, :year, :poster - attr_reader :rating, :plot, :runtime + attr_reader :rating, :plot, :runtime, :genre attr_reader :awards, :director, :actors - attr_reader :country, :language + attr_reader :year, :released, :country, :language attr_reader :response attr_reader :location def initialize(data:) @imdb_id = data[:imdb_id] @@ -40,8 +40,11 @@ @awards = details['Awards'] @director = details['Director'] @actors = details['Actors'] @country = details['Country'] @language = details['Language'] + @year = details['Year'] + @released = details['Released'] + @genre = details['Genre'] end end end