def capture_body=(value)
      if value =~ /(all|transactions|errors|off)/
        @capture_body = value
        return
      end

      case value
      when true
        alert_logger.warn "Boolean value for option `capture_body' has " \
          "been deprecated. Setting to 'all'"
        @capture_body = 'all'
      when false
        alert_logger.warn "Boolean value for option `capture_body' has " \
          "been deprecated. Setting to 'off'"
        @capture_body = 'off'
      else
        default = DEFAULTS[:capture_body]
        alert_logger.warn "Unknown value `#{value}' for option "\
          "`capture_body'. Defaulting to `#{default}'"
        @capture_body = default
      end
    end
def capture_body=(value)
      if value =~ /(all|transactions|errors|off)/
        @capture_body = value
        return
      end

      case value
      when true
        alert_logger.warn "Boolean value for option `capture_body' has " \
          "been deprecated. Setting to 'all'"
        @capture_body = 'all'
      when false
        alert_logger.warn "Boolean value for option `capture_body' has " \
          "been deprecated. Setting to 'off'"
        @capture_body = 'off'
      else
        default = DEFAULTS[:capture_body]
        alert_logger.warn "Unknown value `#{value}' for option "\
          "`capture_body'. Defaulting to `#{default}'"
        @capture_body = default
      end
    end
rubocop:disable Metrics/MethodLength