Class: Whois::Domain::Int

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Whois::Domain::Base

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/whois/domain/int.rb', line 16

def available?
   @raw =~ /returned 0 objects/
end

#name_serversObject



20
21
22
23
# File 'lib/whois/domain/int.rb', line 20

def name_servers
  # Remove IP address.
  super.collect{ |ns| ns.match(/\A([\S]*)\s/)[1] }
end

#registrar_nameObject



12
13
14
# File 'lib/whois/domain/int.rb', line 12

def registrar_name
  ".int Domain Registry (IANA)"
end