class Whois::Parser::Contact
Holds the details of a contact extracted from the WHOIS response.
A contact is composed by the several attributes, accessible through corresponding getter / setter methods.
Please note that a response is not required to provide all the attributes. When an attribute is not available, the corresponding value is set to nil.
@attr [String] id @attr [String] type @attr [String] name @attr [String] organization @attr [String] address @attr [String] city @attr [String] zip @attr [String] state @attr [String] country @attr [String] country_code @attr [String] phone @attr [String] fax @attr [String] email @attr [String] url - e. g. to the contact form @attr [Time] created_on @attr [Time] updated_on
Constants
- TYPE_ADMINISTRATIVE
- TYPE_REGISTRANT
- TYPE_TECHNICAL
Public Class Methods
const_missing(name)
click to toggle source
Calls superclass method
# File lib/whois/parser/contact.rb, line 43 def self.const_missing(name) case name when :TYPE_ADMIN Whois.deprecate("Whois::Record::Contact::TYPE_ADMIN is now Whois::Record::Contact::TYPE_ADMINISTRATIVE") self.const_set(name, TYPE_ADMINISTRATIVE) else super end end