module Domaintally
Constants
- VERSION
Attributes
api_access_token[RW]
Public Class Methods
whois(domain)
click to toggle source
# File lib/domaintally/whois.rb, line 11 def self.whois(domain) params = { :access_token => api_access_token, :domain => domain } body = get('/whois/', :query => params).parsed_response if body['meta']['code'] == 200 body else raise ArgumentError, body['meta']['errorDetail'] end end