Sha256: 5ede6b35c18147045a7b755dde25f9a0359e797a5b2683fe4e7e1fe37316021f

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

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


require 'whois/record/scanners/base'


module Whois
  class Record
    module Scanners

      # Scanner for the whois.registry.om record.
      #
      # @since  2.6.0
      class WhoisRegistryOm < Base

        self.tokenizers += [
            :skip_empty_line,
            :scan_available,
            :scan_keyvalue,
        ]


        tokenizer :scan_available do
          if @input.skip(/^No Data Found\n/)
            @ast['status:available'] = true
          end
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-2.6.4 lib/whois/record/scanners/whois.registry.om.rb
whois-2.6.3 lib/whois/record/scanners/whois.registry.om.rb