class Nexpose::HostName
Object that represents a hostname to be added to a site.
Attributes
host[RW]
Named host (usually DNS or Netbios name).
Public Class Methods
new(hostname)
click to toggle source
# File lib/nexpose/site.rb, line 589 def initialize(hostname) @host = hostname end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/nexpose/site.rb, line 595 def <=>(other) to_xml <=> other.to_xml end
as_xml()
click to toggle source
# File lib/nexpose/site.rb, line 607 def as_xml xml = REXML::Element.new('host') xml.text = @host xml end
Also aliased as: to_xml_elem
eql?(other)
click to toggle source
# File lib/nexpose/site.rb, line 599 def eql?(other) to_xml == other.to_xml end
hash()
click to toggle source
# File lib/nexpose/site.rb, line 603 def hash to_xml.hash end
to_s()
click to toggle source
# File lib/nexpose/site.rb, line 618 def to_s @host.to_s end
to_xml()
click to toggle source
# File lib/nexpose/site.rb, line 614 def to_xml to_xml_elem.to_s end