diff options
author | Telyn <telyn@telynz.uk> | 2018-01-31 11:30:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 11:30:50 +0000 |
commit | 9ef70ed3d53e11dacc5d4df4478d5ff452a2dd6d (patch) | |
tree | ace44f0ea0a81d7d369df74c3d95c219905e7fa6 /lib/mauve/person.rb | |
parent | 0be1fa0ebadf9435a760582d17f47ff96dc0851c (diff) | |
parent | 9af0d1761552601db30de7a991d90d64ec6c88f5 (diff) |
Release to master
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r-- | lib/mauve/person.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index 1e26835..de8038c 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -5,7 +5,7 @@ require 'log4r' module Mauve class Person - attr_reader :username, :password, :urgent, :normal, :low, :email, :xmpp, :sms + attr_reader :username, :password, :urgent, :normal, :low, :email, :sms attr_reader :suppressed, :notifications attr_reader :notify_when_off_sick, :notify_when_on_holiday @@ -18,7 +18,7 @@ module Mauve @username = username @password = nil @urgent = @normal = @low = nil - @email = @sms = @xmpp = @hipchat = nil + @email = @sms = @hipchat = nil @notify_when_on_holiday = @notify_when_off_sick = false end @@ -76,14 +76,6 @@ module Mauve @sms = arg end - # Sets the xmpp parameter - # - # - def xmpp=(arg) - # raise ArgumentError, "xmpp expected a string, not a #{arg.class}" unless arg.is_a?(String) or arg.is_a?(Jabber::JID) - @xmpp = arg - end - # Sets up the hipchat parameter # # @@ -211,7 +203,7 @@ module Mauve # @return Log4r::Logger def logger ; @logger ||= Log4r::Logger.new self.class.to_s ; end - # This method makes sure things like +xmpp+ and +email+ work. + # This method makes sure things like +email+ work. # # @param [String] name The notification method to use # @param [Array or Hash] args Extra conditions to pass to this notification method |