Method: Whoxy::Client#lookup
- Defined in:
- lib/whoxy.rb
#lookup(uri, &block) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/whoxy.rb', line 24 def lookup(uri, &block) domain = parse_domain(uri) response = connection.get(whois_endpoint, whois: domain, key: configuration.key) do |request| yield request if block_given? end response.body end |