Class: Truemail::Audit::Ip

Inherits:
Base show all
Defined in:
lib/truemail/audit/ip.rb

Constant Summary collapse

GET_MY_IP_URL =
'https://api.ipify.org'
IPIFY_ERROR =
'impossible to detect current host address via third party service'

Instance Attribute Summary

Attributes inherited from Worker

#result

Instance Method Summary collapse

Methods inherited from Worker

check, #initialize

Constructor Details

This class inherits a constructor from Truemail::Worker

Instance Method Details

#runObject


9
10
11
12
13
# File 'lib/truemail/audit/ip.rb', line 9

def run
  return add_warning(Truemail::Audit::Ip::IPIFY_ERROR) unless detect_current_host_ip
  Truemail::Audit::Dns.check(result)
  Truemail::Audit::Ptr.check(result)
end