Sha256: e23f8f2cb3a78e2b44ad7ff1b51a0aaf4493031a033c2236d0d30399f26fd0d4

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

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

  ATTR_NAMES = {
    :registrar_name => "Registrar ID",
    :created_on => "Created On",
    :updated_on => "Last Updated On",
    :expires_on => "Expiration Date"
  }
  
  def available?
    @raw =~ /NOT FOUND/
  end
  
  def register_url
    "http://domini.cat/en_registrar.html"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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