Sha256: 1d50579ce13025052bc1ac4fdc320a9056112bf0b0143df1ad19ce96e628cece
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/parser/base_afilias' module Whois class Record class Parser # Parser for the whois.nic.xxx server. class WhoisNicXxx < BaseAfilias property_supported :status do if reserved? :reserved else super() end end # NEWPROPERTY def reserved? !!node("status:reserved") end property_supported :updated_on do node("Last Updated On") do |value| Time.parse(value) unless value.empty? end end private def decompose_registrar(value) if value =~ /(.+?) \((.+?)\)/ [$1, $2] end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-2.2.0 | lib/whois/record/parser/whois.nic.xxx.rb |