class BoxOffice::Movie

Attributes

audience_score[RW]
cast[RW]
critic_score[RW]
director[RW]
earnings[RW]
genres[RW]
rating[RW]
release_date[RW]
runtime[RW]
studio[RW]
synopsis[RW]
title[RW]
writers[RW]

Public Class Methods

all() click to toggle source
# File lib/box_office/movie.rb, line 33
def self.all
  @@all
end
new() click to toggle source
# File lib/box_office/movie.rb, line 7
def initialize
  @@all << self
end

Public Instance Methods

add_movie_attributes(attributes_hash) click to toggle source
# File lib/box_office/movie.rb, line 11
def add_movie_attributes(attributes_hash)
  attributes_hash.each do |attr, value|
    self.send("#{attr}=", value)
  end
end
print_info() click to toggle source