Class Whois::Answer::Contact
In: lib/whois/answer/contact.rb
Parent: SuperStruct.new(:id, :type, :name, :organization, :address, :city, :zip, :state, :country, :country_code, :phone, :fax, :email, :created_on, :updated_on)

Contacts

Holds the details of a Contact extracted from the WHOIS Answer.

A Contact is composed by the following attributes:

  • :id:
  • :type: the contact type (1 = registrant, 2 = admin, 3 = technical).
  • :name:
  • :organization:
  • :address:
  • :city:
  • :zip:
  • :state:
  • :country:
  • :country_code:
  • :phone:
  • :fax:
  • :email:
  • :created_on:
  • :updated_on:

Be aware that every WHOIS server can return a different number of details or no details at all.

Constants

TYPE_REGISTRANT = 1
TYPE_ADMIN = 2
TYPE_TECHNICAL = 3

[Validate]