Class: Whois::Domain::Gov

Inherits:
Base
  • Object
show all
Defined in:
lib/whois/domain/gov.rb

Overview

All I know how to get so far is domain name and status. There is a web interface at www.dotgov.gov/whois.aspx with more detail.

Constant Summary collapse

HOST =
"whois.nic.gov"
ATTR_MATCH =
/^\s*([^:]+):\s(.*)$/
ATTR_NAMES =
{
}

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?, #registered?, #registrant_id, #registrar_name, 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)


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

def available?
  @raw !~ /Domain Name:/
end

#name_serversObject



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

def name_servers
  []
end

#nsObject



24
25
26
# File 'lib/whois/domain/gov.rb', line 24

def ns
  []
end

#register_urlObject



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

def register_url
  "http://www.dotgov.gov/help_how.aspx"
end