Class: Whois::Domain::Cz

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

Constant Summary collapse

HOST =
"whois.nic.cz"
ATTR_MATCH =
/^([^:]+):\s+(\S.*)\r$/
ATTR_NAMES =
{
  :registrar_name => "registrar",
  :created_on => "registered",
  :updated_on => "changed",
  :name_servers => "nserver",
  :expires_on => "expire",
  :status => "status",
  :registrant_id => "contact"
}

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, #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)


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

def available?
  @raw =~ /No entries found/
end

#name_serversObject



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

def name_servers
  attr_array(:name_servers).map {|ns| ns.gsub(/\s+.*$/, "") }
end

#query_stringObject



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

def query_string
  "#{@name}\r\n"
end

#register_urlObject



28
29
30
# File 'lib/whois/domain/cz.rb', line 28

def register_url
  "http://www.nic.cz/page/313/"
end