Notification::getTimestamp()

This commit is contained in:
Ben Ogle
2014-11-24 14:43:12 -08:00
parent f3dd757537
commit 1ae8862a9c
3 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
module.exports =
class Notification
constructor: (@type, @message, @options={}) ->
@timestamp = new Date()
getOptions: -> @options
@@ -10,6 +11,8 @@ class Notification
getMessage: -> @message
getTimestamp: -> @timestamp
getDetail: -> @optons.detail
isClosable: ->