Class: WhoisXMLAPI2::Request::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/whoisxmlapi2/request.rb

Class Method Summary collapse

Class Method Details

.go(domain) ⇒ Object



22
23
24
25
26
27
# File 'lib/whoisxmlapi2/request.rb', line 22

def go(domain)
  timestamp = (Time.now.to_f * 1000).to_i
  digest = generate_digest(timestamp)

  JSON.parse(open(config.url + params(digest, domain, timestamp)).read)
end