lib/truemail/audit/base.rb in truemail-1.7.1 vs lib/truemail/audit/base.rb in truemail-1.8.0

- old
+ new

@@ -1,13 +1,21 @@ # frozen_string_literal: true module Truemail module Audit class Base < Truemail::Worker + require 'net/http' + require 'ipaddr' + require 'resolv' + private def add_warning(message) result.warnings[self.class.name.split('::').last.downcase.to_sym] = message + end + + def current_host_ip + result.current_host_ip end def configuration result.configuration end