Sha256: e6b365935926b926ba2738e0029c02fb527f97e2739d00ff6586937910188542

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

class Whois::Domain::Cz < Whois::Domain::Base
  HOST = "whois.nic.cz"
  ATTR_MATCH = /^([^:]+):\s+(\S.*)\r$/
  responds_to :cz

  ATTR_NAMES = {
    :registrar_name => "registrar",
    :created_on => "registered",
    :updated_on => "changed",
    :name_servers => "nserver",
    :expires_on => "expire",
    :status => "status",
    :registrant_id => "contact"
  }

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jm81-whois-0.7.0 lib/whois/domain/cz.rb
jm81-whois-0.6.0 lib/whois/domain/cz.rb