Module: RequestInfo::Detectors::IpDetector
- Defined in:
- lib/request_info/detectors/ip_detector.rb
Overview
TODO Write some notes on configuration & security in README.
Instance Method Summary collapse
Instance Method Details
#analyze(env) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/request_info/detectors/ip_detector.rb', line 11 def analyze(env) super results = RequestInfo.results ip = request_ip(env) results.ip = ip results.ipinfo = RequestInfo::GeoIP.instance.lookup(ip) end |