lib/coming_soon/movie.rb in coming_soon-0.2.6 vs lib/coming_soon/movie.rb in coming_soon-0.2.7
- old
+ new
@@ -1,15 +1,20 @@
class ComingSoon::Movie
+
attr_accessor :name, :start_date, :url, :synopsis
@@movies = []
def initialize
+
@@movies << self
+
end
def self.movies
+
@@movies
+
end
end