Class | Whois::Answer::Parser::WhoisPublicinterestregistryNet |
In: |
lib/whois/answer/parser/whois.publicinterestregistry.net.rb
lib/whois/answer/parser/whois.publicinterestregistry.net.rb |
Parent: | Base |
Parser for the whois.publicinterestregistry.net server.
# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 121 def throttle? !!node("status-throttle") end
# File lib/whois/answer/parser/whois.publicinterestregistry.net.rb, line 121 def throttle? !!node("status-throttle") end
# 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
# 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