class Whois::Record::Parser::WhoisCnnicCn

Parser for the whois.cnnic.cn server.

Public Instance Methods

reserved?() click to toggle source

NEWPROPERTY

# File lib/whois/record/parser/whois.cnnic.cn.rb, line 89
def reserved?
  !!node("status:reserved")
end

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/record/parser/whois.cnnic.cn.rb, line 96
def build_contact(element, type)
  node("#{element}") do |value|
    Record::Contact.new(
      :type         => type,
      :id           => node("#{element} ID"),
      :name         => value,
      :email        => node("#{element} Contact Email")
    )
  end
end