class Whois::Record::Parser::BaseShared3
Shared parser 3.
@abstract
Private Instance Methods
build_contact(element, type)
click to toggle source
# File lib/whois/record/parser/base_shared3.rb, line 106 def build_contact(element, type) node("#{element}-contact") do |raw| Record::Contact.new( :type => type, :id => node("#{element}-contact"), :name => node("#{element}-name"), :organization => node("#{element}-organization"), :address => node("#{element}-street"), :city => node("#{element}-city"), :zip => node("#{element}-zip"), :state => nil, :country_code => node("#{element}-country"), :phone => node("#{element}-phone"), :fax => node("#{element}-fax"), :email => node("#{element}-email") ) end end