Sha256: cf4439118fda3e76fbfb94ac1a382f80740f21538e698934222193c908788fee

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

class Whois::Domain::Pro < Whois::Domain::Base
  HOST = "whois.registrypro.pro"
  ATTR_MATCH = /^([^:]+):\W*(.*)\r$/
  responds_to :pro

  ATTR_NAMES = {
    :registrar_name => "Sponsoring Registrar",
    :created_on => "Created On",
    :updated_on => "Last Updated On",
    :expires_on => "Expiration Date"
  }

  def status
    attrs["Status"] ? attrs["Status"][0].split(",").collect{|d| d.strip} : nil
  end

  def register_url
    "http://www.registrypro.pro/partners_findaregistrar.htm"
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jm81-whois-0.7.0 lib/whois/domain/pro.rb