Sha256: 911909c10bf024371fa6f6efc9d1ef4f8f96f73d6ac84aee8047cf8cc6c942b0

Contents?: true

Size: 980 Bytes

Versions: 15

Compression:

Stored size: 980 Bytes

Contents

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


require 'whois/record/parser/base_whoisd'


module Whois
  class Record
    class Parser

      # Parser for the whois.nic.fo server.
      #
      # @see Whois::Record::Parser::Example
      #   The Example parser for the list of all available methods.
      #
      class WhoisNicFo < BaseWhoisd

        property_not_supported :registrar

        # whois.nic.fo is using an old whoisd version.
        property_supported :technical_contacts do
          node('tech-c') do |value|
            build_contact(value, Record::Contact::TYPE_TECHNICAL)
          end
        end


        # whois.nic.fo is using an old whoisd version.
        property_supported :nameservers do
          Array.wrap(node('nserver')).map do |line|
            Record::Nameserver.new(:name => line.strip)
          end
        end

      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
whois-3.6.2 lib/whois/record/parser/whois.nic.fo.rb
whois-3.6.1 lib/whois/record/parser/whois.nic.fo.rb
whois-3.6.0 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.9 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.8 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.7 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.6 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.5 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.4 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.3 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.2 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.1 lib/whois/record/parser/whois.nic.fo.rb
whois-3.5.0 lib/whois/record/parser/whois.nic.fo.rb
whois-3.4.5 lib/whois/record/parser/whois.nic.fo.rb
whois-3.4.4 lib/whois/record/parser/whois.nic.fo.rb