aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/person.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2015-10-07 12:24:28 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2015-10-07 12:24:28 +0100
commit5c62ccc2858f8f8245cb6e8f7058c58de9363419 (patch)
treea07f5eff29b28c03278bf64ba0e7b42a38906e65 /lib/mauve/person.rb
parent99e98f288ed62ed06e424da0b60340f1c23e222d (diff)
Added hipchat notification
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r--lib/mauve/person.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb
index 021a393..1e26835 100644
--- a/lib/mauve/person.rb
+++ b/lib/mauve/person.rb
@@ -18,7 +18,7 @@ module Mauve
@username = username
@password = nil
@urgent = @normal = @low = nil
- @email = @sms = @xmpp = nil
+ @email = @sms = @xmpp = @hipchat = nil
@notify_when_on_holiday = @notify_when_off_sick = false
end
@@ -84,6 +84,14 @@ module Mauve
@xmpp = arg
end
+ # Sets up the hipchat parameter
+ #
+ #
+ def hipchat=(arg)
+ raise ArgumentError, "hipchat expected a string, not a #{arg.class}" unless arg.is_a?(String)
+ @hipchat = arg
+ end
+
# Sets the password parameter
#
#