Module: Whois
- Defined in:
- lib/universal_ruby_whois.rb,
lib/support/extended_regexp.rb,
lib/universal_ruby_whois/domain.rb,
lib/universal_ruby_whois/server.rb
Defined Under Namespace
Modules: ExtendedRegexp Classes: Domain, Server
Class Method Summary collapse
-
.find(domain) ⇒ Object
This is a wrapper around the main domain lookup function.
Class Method Details
.find(domain) ⇒ Object
This is a wrapper around the main domain lookup function. It allows you to simply call:
Whois.find("somedomain.com")
It returns a Whois::Domain object if found, or nil if an appropriate whois server can’t be found.
31 32 33 |
# File 'lib/universal_ruby_whois.rb', line 31 def find(domain) ::Whois::Domain.find(domain) end |