Class: Whois::Domain::PublicInterest

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

Constant Summary collapse

HOST =
"whois.pir.org"
ATTR_MATCH =
/^([^:]+):\s*(\S.*)\r$/
ATTR_NAMES =
{
  :registrar_name => "Sponsoring Registrar",
  :created_on => "Creation Date",
  :updated_on => "Updated Date",
  :expires_on => "Registry Expiry 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, #database_updated_at, #expired?, #expires_on, #host, #initialize, #lookup_restricted?, #name_servers, #ns, #register_url, #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)


14
15
16
# File 'lib/whois/domain/public_interest.rb', line 14

def available?
  @raw =~ /NOT FOUND/
end