Class: Whois::Domain::Neustar
- Inherits:
-
Base
- Object
- Base
- Whois::Domain::Neustar
show all
- Defined in:
- lib/whois/domain/neustar.rb
Constant Summary
collapse
- ATTR_MATCH =
/^([^:]+):\s{2,}(.*)$/
- ATTR_NAMES =
{
:registrar_name => "Sponsoring Registrar",
:created_on => "Domain Registration Date",
:updated_on => "Domain Last Updated Date",
:expires_on => "Domain Expiration Date",
:status => "Domain Status"
}
Instance Attribute Summary
Attributes inherited from Base
#name, #raw
Instance Method Summary
collapse
Methods inherited from Base
#administrative_id, #attrs, #created_on, #expired?, #expires_on, #initialize, #lookup_restricted?, #name_servers, #ns, #registered?, #registrant_id, #registrar_name, responds_to, #status, #to_s, #updated_on, #whois_server
Instance Method Details
#available? ⇒ Boolean
27
28
29
|
# File 'lib/whois/domain/neustar.rb', line 27
def available?
@raw =~ /Not found:/
end
|
#database_updated_at ⇒ Object
21
22
23
24
25
|
# File 'lib/whois/domain/neustar.rb', line 21
def database_updated_at
if(@raw =~ /Whois database was last updated on: ([^<]*)/)
Time.parse($1)
end
end
|
#host ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/whois/domain/neustar.rb', line 13
def host
case @name.match(/.*\.([^\.]+)$/)[1]
when 'biz' then 'whois.biz'
when 'us' then 'whois.nic.us'
when 'travel' then 'whois.nic.travel'
end
end
|
#register_url ⇒ Object
31
32
33
34
35
36
37
|
# File 'lib/whois/domain/neustar.rb', line 31
def register_url
if @name.match(/.*\.([^\.]+)$/)[1] == "travel"
"http://www.travel.travel/authenticationframe.htm"
else
super
end
end
|