class Whois::Parsers::WhoisAtiTn

Parser for the whois.ati.tn 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.ati.tn.rb, line 98
def build_contact(element, type)
  node("#{element} Name") do
    Parser::Contact.new(
      type:         type,
      name:         node("#{element} Name"),
      address:      node("#{element} Address"),
      phone:        node("#{element} Tel"),
      fax:          node("#{element} Fax"),
      email:        node("#{element} Email"),
      created_on:   node("#{element} Created") { |value| parse_time(value) },
      updated_on:   node("#{element} Updated") { |value| parse_time(value) }
    )
  end
end