Sha256: 0c69d26d7a7a4e3ca9b3536a73ef2be3470393baa39038026b23f16b2ce33bc2

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

class Top10BoxOffice::MovieDetails
  attr_accessor :movie, :imdb_rating, :actors, :director, :genre, :content_rating, :runtime, :summary
  @@all = []

  def initialize(attributes)
    attributes.each { |key, value| self.send("#{key}=", value) }
    self.class.all << self
  end

  def self.all
    @@all
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
top_10_box_office-0.1.2 lib/top_10_box_office/movie_details.rb
top_10_box_office-0.1.1 lib/top_10_box_office/movie_details.rb
top_10_box_office-0.1.0 lib/top_10_box_office/movie_details.rb