Class: Whois::Domain::Int
- Inherits:
-
Base
- Object
- Base
- Whois::Domain::Int
show all
- Defined in:
- lib/whois/domain/int.rb
Constant Summary
collapse
- HOST =
"whois.iana.org"
- ATTR_MATCH =
/^([^:]+):\s+(\S.*)$/
- ATTR_NAMES =
{
:created_on => 'created',
:updated_on => 'changed',
:name_servers => 'nserver'
}
Instance Attribute Summary
Attributes inherited from Base
#name, #raw
Instance Method Summary
collapse
Methods inherited from Base
#administrative_id, #attrs, #created_on, #database_updated_at, #expired?, #expires_on, #host, #initialize, #lookup_restricted?, #ns, #register_url, #registered?, #registrant_id, responds_to, #status, #to_s, #updated_on, #whois_server
Instance Method Details
#available? ⇒ Boolean
16
17
18
|
# File 'lib/whois/domain/int.rb', line 16
def available?
@raw =~ /returned 0 objects/
end
|
#name_servers ⇒ Object
20
21
22
23
|
# File 'lib/whois/domain/int.rb', line 20
def name_servers
super.collect{ |ns| ns.match(/\A([\S]*)\s/)[1] }
end
|
#registrar_name ⇒ Object
12
13
14
|
# File 'lib/whois/domain/int.rb', line 12
def registrar_name
".int Domain Registry (IANA)"
end
|