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
commit3eae7f048f8245095d21b904dbb5763789a11edc (patch)
treee77c854f000f5b2f6a0b76e19d71bf93fae00161
parent667c17bff529fe1aed656872613edcd12102cb67 (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