aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/person.rb
diff options
context:
space:
mode:
authorJames Hannah <jhannah@bytemark.co.uk>2017-01-26 10:28:14 +0000
committerJames Hannah <jhannah@bytemark.co.uk>2017-01-26 10:28:14 +0000
commit99eb81c4447f093f9e4b19a263ab8d1f5e8f8986 (patch)
tree06cab9cdbb0c34e4a1bf4fb4825721511ec0c9d8 /lib/mauve/person.rb
parent5c62ccc2858f8f8245cb6e8f7058c58de9363419 (diff)
Pushover supportpushover2
Based on the Hipchat notifier. API Reference: https://pushover.net/api
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
#
#