Class: EPP::Commands::ReadWriteCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/epp-client/commands/read_write_command.rb

Direct Known Subclasses

Check, Create, Delete, Info, Renew, Transfer, Update

Instance Method Summary collapse

Methods inherited from Command

#set_namespaces, #to_s

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_xmlObject



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