Sha256: cdd6c57515517af1ad8021fcf9e812d5f3ccd41098dc9b4002667cafb4fc9477

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

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


require 'whois/record/scanners/base'


module Whois
  class Record
    module Scanners

      # Scanner for the whois.ascio.com record.
      class WhoisAscioCom < Base

        self.tokenizers += [
            :scan_disclaimer,
            :scan_keyvalue,
        ]

        tokenizer :scan_disclaimer do
          if @input.match?(/^The data in Ascio Technologies/)
            @ast["field:disclaimer"] = _scan_lines_to_array(/(.+)\n/).join(" ")
          end
          @input.terminate
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-3.4.1 lib/whois/record/scanners/whois.ascio.com.rb
whois-3.4.0 lib/whois/record/scanners/whois.ascio.com.rb