diff options
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r-- | lib/mauve/person.rb | 10 |
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 # # |