Module: WhoisXMLAPI
- Defined in:
- lib/whoisxmlapi.rb,
lib/whoisxmlapi/good.rb,
lib/whoisxmlapi/client.rb,
lib/whoisxmlapi/result.rb,
lib/whoisxmlapi/contact.rb,
lib/whoisxmlapi/version.rb,
lib/whoisxmlapi/bad_domain.rb,
lib/whoisxmlapi/un_parsable.rb,
lib/whoisxmlapi/unavailable.rb,
lib/whoisxmlapi/rwhois_result.rb
Defined Under Namespace
Classes: BadDomain, Client, Contact, Good, RWhoisResult, Result, UnParsable, Unavailable
Constant Summary
collapse
- VERSION =
"0.0.15"
Class Method Summary
collapse
Class Method Details
.cache ⇒ Object
48
49
50
|
# File 'lib/whoisxmlapi.rb', line 48
def self.cache
@cache.nil? or @cache.blank? ? true : @cache
end
|
.cache=(bool) ⇒ Object
44
45
46
|
# File 'lib/whoisxmlapi.rb', line 44
def self.cache=(bool)
@cache = bool
end
|
.cache_length ⇒ Object
40
41
42
|
# File 'lib/whoisxmlapi.rb', line 40
def self.cache_length
@cache_length
end
|
.cache_length=(leng) ⇒ Object
36
37
38
|
# File 'lib/whoisxmlapi.rb', line 36
def self.cache_length=(leng)
@cache_length = leng
end
|
.callbacks ⇒ Object
60
61
62
63
64
65
|
# File 'lib/whoisxmlapi.rb', line 60
def self.callbacks
@callbacks ||= {}
@callbacks[:whois] ||= []
@callbacks[:rwhois] ||= []
@callbacks
end
|
76
77
78
|
# File 'lib/whoisxmlapi.rb', line 76
def self.configure
yield self
end
|
.domain ⇒ Object
12
13
14
|
# File 'lib/whoisxmlapi.rb', line 12
def self.domain
@domain
end
|
.domain=(dom) ⇒ Object
16
17
18
|
# File 'lib/whoisxmlapi.rb', line 16
def self.domain=(dom)
@domain = dom
end
|
.logger ⇒ Object
67
68
69
70
|
# File 'lib/whoisxmlapi.rb', line 67
def self.logger
@logger ||= Logger.new(STDOUT)
@logger
end
|
.logger=(log) ⇒ Object
72
73
74
|
# File 'lib/whoisxmlapi.rb', line 72
def self.logger=(log)
@logger = log
end
|
.password ⇒ Object
28
29
30
|
# File 'lib/whoisxmlapi.rb', line 28
def self.password
@password
end
|
.password=(pass) ⇒ Object
32
33
34
|
# File 'lib/whoisxmlapi.rb', line 32
def self.password=(pass)
@password = pass
end
|
.rwhois_mode ⇒ Object
56
57
58
|
# File 'lib/whoisxmlapi.rb', line 56
def self.rwhois_mode
@rwhois_mode ? @rwhois_mode : 'sample_purchase'
end
|
.rwhois_mode=(mode) ⇒ Object
52
53
54
|
# File 'lib/whoisxmlapi.rb', line 52
def self.rwhois_mode=(mode)
@rwhois_mode = mode
end
|
.username ⇒ Object
20
21
22
|
# File 'lib/whoisxmlapi.rb', line 20
def self.username
@username
end
|
.username=(uname) ⇒ Object
24
25
26
|
# File 'lib/whoisxmlapi.rb', line 24
def self.username=(uname)
@username = uname
end
|