Class: EPP::Host::Info
Instance Attribute Summary
Attributes inherited from Command
#namespaces
Instance Method Summary
collapse
Methods inherited from Command
#set_namespaces
Methods included from XMLHelpers
#as_xml, #epp_namespace, #epp_node, #xml_document, #xml_namespace, #xml_node
Constructor Details
#initialize(name) ⇒ Info
6
7
8
|
# File 'lib/epp-client/host/info.rb', line 6
def initialize(name)
@name = name
end
|
Instance Method Details
#name ⇒ Object
10
11
12
|
# File 'lib/epp-client/host/info.rb', line 10
def name
'info'
end
|
#to_xml ⇒ Object
14
15
16
17
18
|
# File 'lib/epp-client/host/info.rb', line 14
def to_xml
node = super
node << host_node('name', @name)
node
end
|