Class: Whois::Parser::Contact
- Inherits:
-
Object
- Object
- Whois::Parser::Contact
- Defined in:
- lib/whois/parser/contact.rb
Overview
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.
Constant Summary collapse
- TYPE_REGISTRANT =
1- TYPE_ADMINISTRATIVE =
2- TYPE_TECHNICAL =
3
Instance Attribute Summary collapse
-
#address ⇒ String
The current value of address.
-
#city ⇒ String
The current value of city.
-
#country ⇒ String
The current value of country.
-
#country_code ⇒ String
The current value of country_code.
-
#created_on ⇒ Time
The current value of created_on.
-
#email ⇒ String
The current value of email.
-
#fax ⇒ String
The current value of fax.
-
#id ⇒ String
The current value of id.
-
#name ⇒ String
The current value of name.
-
#organization ⇒ String
The current value of organization.
-
#phone ⇒ String
The current value of phone.
-
#state ⇒ String
The current value of state.
-
#type ⇒ String
The current value of type.
-
#updated_on ⇒ Time
The current value of updated_on.
-
#url ⇒ String
-
e.
-
-
#zip ⇒ String
The current value of zip.
Class Method Summary collapse
Instance Attribute Details
#address ⇒ String
Returns the current value of address.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def address @address end |
#city ⇒ String
Returns the current value of city.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def city @city end |
#country ⇒ String
Returns the current value of country.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def country @country end |
#country_code ⇒ String
Returns the current value of country_code.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def country_code @country_code end |
#created_on ⇒ Time
Returns the current value of created_on.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def created_on @created_on end |
#email ⇒ String
Returns the current value of email.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def email @email end |
#fax ⇒ String
Returns the current value of fax.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def fax @fax end |
#id ⇒ String
Returns the current value of id.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def id @id end |
#name ⇒ String
Returns the current value of name.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def name @name end |
#organization ⇒ String
Returns the current value of organization.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def organization @organization end |
#phone ⇒ String
Returns the current value of phone.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def phone @phone end |
#state ⇒ String
Returns the current value of state.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def state @state end |
#type ⇒ String
Returns the current value of type.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def type @type end |
#updated_on ⇒ Time
Returns the current value of updated_on.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def updated_on @updated_on end |
#url ⇒ String
-
to the contact form
-
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def url @url end |
#zip ⇒ String
Returns the current value of zip.
33 34 35 |
# File 'lib/whois/parser/contact.rb', line 33 def zip @zip end |
Class Method Details
.const_missing(name) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# 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 |