projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make system unable to check out already checked out items
[cs356-p2-videostore.git]
/
app
/
models
/
game.rb
diff --git
a/app/models/game.rb
b/app/models/game.rb
index
0ca782b
..
872b45a
100644
(file)
--- a/
app/models/game.rb
+++ b/
app/models/game.rb
@@
-2,4
+2,14
@@
class Game < Rentable
validates_presence_of :game_genre
validates_presence_of :platform
validates_presence_of :game_genre
validates_presence_of :platform
+ def calculated_price
+ # FIXME: generate this based on day of week, newrelase
+ return 11
+ end
+
+ def due_date
+ # FIXME: generate this based on the day of week, newrelease
+ return Time.now.advance(:days => 2).to_date
+ end
+
end
end