Class Whois::Answer::Parser::WhoisPublicinterestregistryNet
In: lib/whois/answer/parser/whois.publicinterestregistry.net.rb
lib/whois/answer/parser/whois.publicinterestregistry.net.rb
Parent: Base

whois.publicinterestregistry.net parser

Parser for the whois.publicinterestregistry.net server.

Methods

contact   contact   parse   parse   throttle?   throttle?  

Included Modules

Ast Ast

Classes and Modules

Class Whois::Answer::Parser::WhoisPublicinterestregistryNet::Scanner

Public Instance methods

[Source]

# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 121
        def throttle?
          !!node("status-throttle")
        end

[Source]

# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 121
        def throttle?
          !!node("status-throttle")
        end

Protected Instance methods

[Source]

# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 132
          def contact(element, type)
            node("#{element} ID") do |registrant_id|
              Whois::Answer::Contact.new(
                :id           => registrant_id,
                :type         => type,
                :name         => node("#{element} Name"),
                :organization => node("#{element} Organization"),
                :address      => [node("#{element} Street1"),
                                  node("#{element} Street2"),
                                  node("#{element} Street3")].reject { |value| value.to_s.empty? }.join(" "),
                :city         => node("#{element} City"),
                :zip          => node("#{element} Postal Code"),
                :state        => node("#{element} State/Province"),
                :country_code => node("#{element} Country"),
                :phone        => node("#{element} Phone"),
                :fax          => node("#{element} FAX"),
                :email        => node("#{element} Email")
              )
            end
          end

[Source]

# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 132
          def contact(element, type)
            node("#{element} ID") do |registrant_id|
              Whois::Answer::Contact.new(
                :id           => registrant_id,
                :type         => type,
                :name         => node("#{element} Name"),
                :organization => node("#{element} Organization"),
                :address      => [node("#{element} Street1"),
                                  node("#{element} Street2"),
                                  node("#{element} Street3")].reject { |value| value.to_s.empty? }.join(" "),
                :city         => node("#{element} City"),
                :zip          => node("#{element} Postal Code"),
                :state        => node("#{element} State/Province"),
                :country_code => node("#{element} Country"),
                :phone        => node("#{element} Phone"),
                :fax          => node("#{element} FAX"),
                :email        => node("#{element} Email")
              )
            end
          end

[Source]

# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 128
          def parse
            Scanner.new(content_for_scanner).parse
          end

[Source]

# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 128
          def parse
            Scanner.new(content_for_scanner).parse
          end

[Validate]