Sha256: de7de8277d47877f8d685d67b26679102e68d5e86068aac37cc67e156166d787

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2015 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

6 entries across 6 versions & 2 rubygems

Version Path
whois-parser-1.0.1 lib/whois/parsers/whois.registry.om.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/parsers/whois.registry.om.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parsers/whois.registry.om.rb
whois-parser-1.0.0 lib/whois/parsers/whois.registry.om.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parsers/whois.registry.om.rb
whois-parser-1.0.0.pre.beta1 lib/whois/parsers/whois.registry.om.rb