lib/whois/parsers/whois.biz.rb in whois-parser-1.0.1 vs lib/whois/parsers/whois.biz.rb in whois-parser-1.1.0
- old
+ new
@@ -1,25 +1,34 @@
#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
-# Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net>
+# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
#++
-require_relative 'base_shared2'
+require_relative 'base_icann_compliant'
module Whois
class Parsers
# Parser for the whois.biz server.
#
# @see Whois::Parsers::Example
# The Example parser for the list of all available methods.
#
- class WhoisBiz < BaseShared2
+ class WhoisBiz < BaseIcannCompliant
+ self.scanner = Scanners::BaseIcannCompliant, {
+ pattern_available: /^No Data Found\n/
+ }
+
+ property_supported :expires_on do
+ node("Registry Expiry Date") do |value|
+ parse_time(value)
+ end
+ end
end
end
end