Add Purchase system
[cs356-p2-videostore.git] / app / models / video.rb
index 411c978..fdf90c3 100644 (file)
@@ -6,6 +6,11 @@ class Video < Rentable
   validates_presence_of :video_genre
   validates_presence_of :media
 
+  def calculated_price
+    # FIXME: generate this based on day of week, newrelase
+    return 11
+  end
+
   protected
   def validate
     errors.add(:video_genre, "does not exist in the database") if video_genre.nil?