Sha256: 019e1e54482fc41e3e8d4074beb31c4f61e31b654ee80e9f7a08e84d1cf2f92d
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net> #++ require_relative 'base_afilias' module Whois class Parsers # Parser for the whois.aero server. # # @see Whois::Parsers::Example # The Example parser for the list of all available methods. # class WhoisAero < BaseAfilias self.scanner = Scanners::BaseAfilias, { pattern_reserved: /^Name is restricted from registration\n/, } property_supported :status do if reserved? :reserved else Array.wrap(node("Domain Status")) end end property_supported :updated_on do node("Updated On") do |value| parse_time(value) end end property_supported :expires_on do node("Expires On") do |value| parse_time(value) end end # NEWPROPERTY def reserved? !!node("status:reserved") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whois-parser-1.2.0 | lib/whois/parsers/whois.aero.rb |
whois-parser-1.1.0 | lib/whois/parsers/whois.aero.rb |