Sha256: 29d177ea824ab2f60ebf4f7969d2d20dbc1aaa56b88a6a6e12d1e49ce448b9a7

Contents?: true

Size: 898 Bytes

Versions: 6

Compression:

Stored size: 898 Bytes

Contents

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


require_relative 'base_whoisd'


module Whois
  class Parsers

    # Parser for the whois.nic.fo server.
    #
    # @see Whois::Parsers::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, Parser::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|
          Parser::Nameserver.new(:name => line.strip)
        end
      end

    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
whois-parser-1.0.1 lib/whois/parsers/whois.nic.fo.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/parsers/whois.nic.fo.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parsers/whois.nic.fo.rb
whois-parser-1.0.0 lib/whois/parsers/whois.nic.fo.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parsers/whois.nic.fo.rb
whois-parser-1.0.0.pre.beta1 lib/whois/parsers/whois.nic.fo.rb