Sha256: 62c5f0c8c612db1224c0dc9d5ad2ddec1d9226fe68bfca8c6354e3794feeb212

Contents?: true

Size: 721 Bytes

Versions: 2

Compression:

Stored size: 721 Bytes

Contents

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


require 'whois/record/parser/scanners/base'


module Whois
  class Record
    class Parser
      module Scanners

        # Scanner for the whois.registry.qa record.
        #
        # @since  2.1.0
        class WhoisRegistryQa < Base

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


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

        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-2.4.0 lib/whois/record/parser/scanners/whois.registry.qa.rb
whois-2.3.0 lib/whois/record/parser/scanners/whois.registry.qa.rb