Class: NameChecker::NetChecker
- Inherits:
-
Object
- Object
- NameChecker::NetChecker
- Defined in:
- lib/name_checker/net_checker.rb
Class Method Summary collapse
Class Method Details
.check(host_name, tld) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/name_checker/net_checker.rb', line 3 def self.check(host_name, tld) host = host_name + tld # Use the RoboWhoisChecker if there is an API key set. if NameChecker.configuration.robo_whois_api_key RoboWhoisChecker.check(host) # Or use the WhoisChecker if there isn't (default). else WhoisChecker.check(host) end end |