Class: EPP::Commands::Command
- Inherits:
-
Object
- Object
- EPP::Commands::Command
- Includes:
- XMLHelpers
- Defined in:
- lib/epp-client/commands/command.rb
Direct Known Subclasses
Instance Method Summary collapse
- #set_namespaces(namespaces) ⇒ Object
-
#to_s(opts = {}) ⇒ Object
Convert the receiver to a string.
-
#to_xml ⇒ XML::Document
Receiver in XML form.
Methods included from XMLHelpers
#as_xml, #epp_namespace, #epp_node, #xml_document, #xml_namespace, #xml_node
Instance Method Details
#set_namespaces(namespaces) ⇒ Object
6 7 8 |
# File 'lib/epp-client/commands/command.rb', line 6 def set_namespaces(namespaces) @namespaces = namespaces end |
#to_s(opts = {}) ⇒ Object
Convert the receiver to a string
19 20 21 |
# File 'lib/epp-client/commands/command.rb', line 19 def to_s(opts = {}) to_xml.to_s({:indent => false}.merge(opts)) end |
#to_xml ⇒ XML::Document
Receiver in XML form
12 13 14 |
# File 'lib/epp-client/commands/command.rb', line 12 def to_xml epp_node(name, @namespaces || {}) end |