summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 16:14:48 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 16:14:48 +0000
commit33255c3343aa8914627d8a54391c3a862f32fb29 (patch)
treee77c854f000f5b2f6a0b76e19d71bf93fae00161
parenta4df3a26820433eb2f1e15ccefa6175c6bd3b8d4 (diff)
There is a helper for getting/setting the alert target
-rw-r--r--lib/custodian/alertfactory.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/custodian/alertfactory.rb b/lib/custodian/alertfactory.rb
index 74f6f3c..e176f6d 100644
--- a/lib/custodian/alertfactory.rb
+++ b/lib/custodian/alertfactory.rb
@@ -15,6 +15,10 @@ module Custodian
class AlertFactory
+ #
+ # The target for the alert.
+ #
+ attr_reader :target
#
# The subclasses we have.
@@ -69,6 +73,15 @@ module Custodian
+ #
+ # Set the target for this alert.
+ #
+ def set_target( target )
+ @target = target
+ end
+
+
+
def raise
puts "NOP"
end
@@ -78,6 +91,8 @@ module Custodian
def clear
puts "NOP"
end
+
+
end
end