Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Whois::Record::Nameserver

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.

@attr [String] name @attr [String] ipv4 @attr [String] ipv6

Public Instance Methods

to_s() click to toggle source

Returns a string representation of this object composed by the host name.

@example

Nameserver.new(:name => "ns.example.com").to_s
# => "ns.example.com"
Nameserver.new.to_s
# => ""

@return [String] The string representation.

# File lib/whois/record/nameserver.rb, line 41
def to_s
  name.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.