aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-12-05 09:13:43 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-12-05 09:13:43 +0000
commit516c28dc1ea9f5cae42ac0682593016c2eff75dc (patch)
tree8a6fe5f9b485f9e35941eb7e38bc1c75f24f13e1
parent685049eb551632e24ea7631f7c85219c16f52322 (diff)
Added an update_type getter that returns "cleared" if the update type
is nil.
-rw-r--r--lib/mauve/alert.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index 72568b3..40d2f1c 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -209,6 +209,11 @@ module Mauve
def detail; super || "_No detail set._" ; end
#
+ # The update type
+ #
+ def update_type; super || "cleared" ; end
+
+ #
# Set the subject -- this clears the cached_alert_group.
#
def subject=(s)