Created
April 8, 2016 23:35
-
-
Save sbellware/5b0912f97638a41f33030636b309412c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Events | |
class Recorded | |
include EventStore::Messaging::Message | |
include Lapse | |
attribute :error_id | |
attribute :time | |
attribute :source | |
attribute :hostname | |
attribute :error | |
def lapsed?(now) | |
elapsed_milliseconds(now) > self.class.effective_milliseconds | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment