# File lib/god/behaviors/notify_when_flapping.rb, line 14
      def valid?
        valid = true
        valid &= complain("Attribute 'failures' must be specified", self) unless self.failures
        valid &= complain("Attribute 'seconds' must be specified", self) unless self.seconds
        valid &= complain("Attribute 'notifier' must be specified", self) unless self.notifier

        # Must take one arg or variable args
        unless self.notifier.respond_to?(:notify) and [1,-1].include?(self.notifier.method(:notify).arity)
          valid &= complain("The 'notifier' must have a method 'notify' which takes 1 or variable args", self)
        end

        valid
      end