class Whois::Record::Parser::WhoisSmallregistryNet

Parser for the whois.smallregistry.net server.

@author Mathieu Arnold <m@absolight.fr>

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/record/parser/whois.smallregistry.net.rb, line 114
def build_contact(element, type)
  node(element) do |hash|
    Record::Contact.new(
      :type         => type,
      :id           => hash['nic-handle'],
      :name         => hash['name'],
      :organization => hash['company'],
      :address      => hash['address'],
      :phone        => hash['phone'],
      :fax          => hash['fax'],
      :email        => hash['mobile'],
      :updated_on   => Time.parse(hash['updated'])
    )
  end
end