class Top10BoxOffice::MovieDetails

Attributes

actors[RW]
content_rating[RW]
director[RW]
genre[RW]
imdb_rating[RW]
movie[RW]
runtime[RW]
summary[RW]

Public Class Methods

all() click to toggle source
# File lib/top_10_box_office/movie_details.rb, line 10
def self.all
  @@all
end
new(attributes) click to toggle source
# File lib/top_10_box_office/movie_details.rb, line 5
def initialize(attributes)
  attributes.each { |key, value| self.send("#{key}=", value) }
  self.class.all << self
end