Class: Whois::Parser::Nameserver
- Inherits:
-
Object
- Object
- Whois::Parser::Nameserver
- Defined in:
- lib/whois/parser/nameserver.rb
Overview
Holds the details of the Name Servers extracted from the WHOIS response.
A name server 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.
Instance Attribute Summary collapse
-
#ipv4 ⇒ String
The current value of ipv4.
-
#ipv6 ⇒ String
The current value of ipv6.
-
#name ⇒ String
The current value of name.
Instance Method Summary collapse
-
#to_s ⇒ String
Returns a string representation of this object composed by the host
name
.
Instance Attribute Details
#ipv4 ⇒ String
Returns the current value of ipv4.
20 21 22 |
# File 'lib/whois/parser/nameserver.rb', line 20 def ipv4 @ipv4 end |
#ipv6 ⇒ String
Returns the current value of ipv6.
20 21 22 |
# File 'lib/whois/parser/nameserver.rb', line 20 def ipv6 @ipv6 end |
#name ⇒ String
Returns the current value of name.
20 21 22 |
# File 'lib/whois/parser/nameserver.rb', line 20 def name @name end |
Instance Method Details
#to_s ⇒ String
Returns a string representation of this object composed by the host name
.
32 33 34 |
# File 'lib/whois/parser/nameserver.rb', line 32 def to_s name.to_s end |