Sha256: b47d361e6341cdd0607ba334377e2b04c370f9afde66fbb1ef159abd40751f68
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/parser/base_icann_compliant' module Whois class Record class Parser # Parser for the whois.safenames.net server. # # @see Whois::Record::Parser::Example # The Example parser for the list of all available methods. # class WhoisSafenamesNet < BaseIcannCompliant self.scanner = Scanners::BaseIcannCompliant, { pattern_available: /^No match for "[\w\.]+"\.\n/ } property_supported :created_on do node('Created Date') do |value| parse_time(value) end end private def contact_organization_attribute(element) value_for_property(element, 'Organisation') end def contact_address_attribute(element) address = (1..2). map { |i| node("#{element} Address Line #{i}") }. compact.join("\n").chomp end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whois-3.6.5 | lib/whois/record/parser/whois.safenames.net.rb |
whois-3.6.4 | lib/whois/record/parser/whois.safenames.net.rb |
whois-3.6.3 | lib/whois/record/parser/whois.safenames.net.rb |