Class: EPP::Commands::ReadWriteCommand
- Defined in:
- lib/epp-client/commands/read_write_command.rb
Instance Method Summary collapse
-
#initialize(command) ⇒ ReadWriteCommand
constructor
A new instance of ReadWriteCommand.
- #to_xml ⇒ Object
Methods inherited from Command
Methods included from XMLHelpers
#as_xml, #epp_namespace, #epp_node, #xml_document, #xml_namespace, #xml_node
Constructor Details
#initialize(command) ⇒ ReadWriteCommand
Returns a new instance of ReadWriteCommand.
6 7 8 |
# File 'lib/epp-client/commands/read_write_command.rb', line 6 def initialize(command) @command = command end |
Instance Method Details
#to_xml ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/epp-client/commands/read_write_command.rb', line 9 def to_xml node = super @command.set_namespaces(@namespaces) if @command.respond_to?(:set_namespaces) node << as_xml(@command) node end |