class Whois::Parsers::BaseShared3

Shared parser 3.

@abstract

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/parsers/base_shared3.rb, line 105
def build_contact(element, type)
  node("#{element}-contact") do |raw|
    Parser::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