Class: Nexpose::HostName
Overview
Description
Object that represents a hostname to be added to a site.
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
The hostname.
Instance Method Summary collapse
-
#initialize(hostname) ⇒ HostName
constructor
A new instance of HostName.
- #to_xml ⇒ Object
Methods included from Sanitize
Constructor Details
#initialize(hostname) ⇒ HostName
Returns a new instance of HostName.
1140 1141 1142 |
# File 'lib/nexpose.rb', line 1140 def initialize(hostname) @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
The hostname
1138 1139 1140 |
# File 'lib/nexpose.rb', line 1138 def hostname @hostname end |
Instance Method Details
#to_xml ⇒ Object
1145 1146 1147 |
# File 'lib/nexpose.rb', line 1145 def to_xml "<hostname>#{replace_entities(hostname)}</hostname>" end |