Sha256: 6075224b02dd2a8a055479dab9fdb147c0c2bf968d9ae9403d34d6aa747ccdde
Contents?: true
Size: 894 Bytes
Versions: 4
Compression:
Stored size: 894 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2013 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 property_supported :updated_on do node("Last Updated On") do |value| Time.parse(value) unless value.empty? end end # NEWPROPERTY def reserved? !!node("status:reserved") end private def decompose_registrar(value) if value =~ /(.+?) \((.+?)\)/ [$1, $2] end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems