This gem module provides a classes to find the right Regional Internet Registry for a given IP Address. The query method will navigate each major RIR until a response is found. A second class allows the responses from various RIRs to be formatted to a common response format
Gemfile gem 'vizi_whois', '~> 0.3.0'
install gem install vizi_whois -v 0.3.0