From 33255c3343aa8914627d8a54391c3a862f32fb29 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 16:14:48 +0000 Subject: There is a helper for getting/setting the alert target --- lib/custodian/alertfactory.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib') 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 -- cgit v1.2.1