module WhoisXMLAPI
Constants
- VERSION
Public Class Methods
account_path()
click to toggle source
# File lib/whoisxmlapi.rb, line 35 def self.account_path @account_path ? @account_path : "https://user.whoisxmlapi.com/service/account-balance" end
account_path=(path)
click to toggle source
# File lib/whoisxmlapi.rb, line 31 def self.account_path=(path) @account_path = path end
api_key()
click to toggle source
# File lib/whoisxmlapi.rb, line 40 def self.api_key @api_key end
api_key=(key)
click to toggle source
# File lib/whoisxmlapi.rb, line 44 def self.api_key=(key) @api_key = key end
cache()
click to toggle source
# File lib/whoisxmlapi.rb, line 62 def self.cache @cache.nil? or @cache.blank? ? true : @cache end
cache=(bool)
click to toggle source
# File lib/whoisxmlapi.rb, line 58 def self.cache=(bool) @cache = bool end
cache_length()
click to toggle source
# File lib/whoisxmlapi.rb, line 53 def self.cache_length @cache_length end
cache_length=(leng)
click to toggle source
# File lib/whoisxmlapi.rb, line 49 def self.cache_length=(leng) @cache_length = leng end
callbacks()
click to toggle source
# File lib/whoisxmlapi.rb, line 76 def self.callbacks @callbacks ||= {} @callbacks[:whois] ||= [] @callbacks[:rwhois] ||= [] @callbacks end
configure() { |self| ... }
click to toggle source
# File lib/whoisxmlapi.rb, line 94 def self.configure yield self end
logger()
click to toggle source
# File lib/whoisxmlapi.rb, line 84 def self.logger @logger ||= Logger.new(STDOUT) @logger end
logger=(log)
click to toggle source
# File lib/whoisxmlapi.rb, line 89 def self.logger=(log) @logger = log end
rwhois_mode()
click to toggle source
# File lib/whoisxmlapi.rb, line 71 def self.rwhois_mode @rwhois_mode ? @rwhois_mode : 'sample_purchase' end
rwhois_mode=(mode)
click to toggle source
# File lib/whoisxmlapi.rb, line 67 def self.rwhois_mode=(mode) @rwhois_mode = mode end
rwhois_path()
click to toggle source
# File lib/whoisxmlapi.rb, line 26 def self.rwhois_path @rwhois_path ? @rwhois_path : "https://reverse-whois-api.whoisxmlapi.com/api/v2" end
rwhois_path=(path)
click to toggle source
# File lib/whoisxmlapi.rb, line 22 def self.rwhois_path=(path) @rwhois_path = path end
whois_path()
click to toggle source
# File lib/whoisxmlapi.rb, line 17 def self.whois_path @whois_path ? @whois_path : "https://www.whoisxmlapi.com/whoisserver/WhoisService" end
whois_path=(path)
click to toggle source
# File lib/whoisxmlapi.rb, line 13 def self.whois_path=(path) @whois_path = path end