Sha256: 892a8c2149cfb91dc50c13dc59d25756aedd6f03450b9cc96faa767119bfd728

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
#++


require_relative 'base_shared1'


module Whois
  class Parsers

    # Parser for the whois.registry.om server.
    #
    # @see Whois::Parsers::Example
    #   The Example parser for the list of all available methods.
    #
    class WhoisRegistryOm < BaseShared1

      self.scanner = Scanners::BaseShared1, {
          pattern_reserved: /^Restricted\n/
      }


      property_supported :updated_on do
        node("Last Modified") { |value| parse_time(value) }
      end


      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.registry.om.rb
whois-parser-1.1.0 lib/whois/parsers/whois.registry.om.rb