class Whois::Parsers::WhoisSx

Parser for the whois.sx server.

@see Whois::Parsers::Example

The Example parser for the list of all available methods.

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/parsers/whois.sx.rb, line 108
def build_contact(element, type)
  node("#{element} ID") do |id|
    Parser::Contact.new(
        :type         => type,
        :id           => id,
        :name         => node("#{element} Name"),
        :organization => node("#{element} Organization"),
        :address      => node("#{element} Street"),
        :city        => node("#{element} City"),
        :zip          => node("#{element} Postal Code"),
        :country      => node("#{element} Country"),
        :email        => node("#{element} Email")
    )
  end
end