Sha256: 5d26043aaaf54884cf639c83294cd9dc4ed63f795240914f481c5f9ab28764e2
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
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_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whois-3.6.2 | lib/whois/record/parser/whois.safenames.net.rb |
whois-3.6.1 | lib/whois/record/parser/whois.safenames.net.rb |