aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/person.rb
diff options
context:
space:
mode:
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 1e26835..9a5644e 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 = @hipchat = nil
+ @email = @sms = @xmpp = @hipchat = @pushover = nil
@notify_when_on_holiday = @notify_when_off_sick = false
end
@@ -92,6 +92,14 @@ module Mauve
@hipchat = arg
end
+ # Sets up the pushover parameter
+ #
+ #
+ def pushover=(arg)
+ raise ArgumentError, "pushover expected a string, not a #{arg.class}" unless arg.is_a?(String)
+ @pushover = arg
+ end
+
# Sets the password parameter
#
#