Sha256: 8570d7e2739fa566458cf80dd124419494332ec61541650933e4e21171047ab6

Contents?: true

Size: 1003 Bytes

Versions: 1

Compression:

Stored size: 1003 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/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.
      #
      # @since  2.6.4
      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

1 entries across 1 versions & 1 rubygems

Version Path
whois-2.7.0 lib/whois/record/parser/whois.nic.fo.rb