Class: KonoEppClient::Commands::Command
- Inherits:
-
REXML::Document
- Object
- REXML::Document
- KonoEppClient::Commands::Command
- Defined in:
- lib/kono_epp_client/commands/command.rb
Direct Known Subclasses
CheckContacts, CheckDomains, CreateContact, CreateDomain, DeleteContact, DeleteDomain, InfoContact, InfoDomain, Login, Logout, Poll, TransferDomain, UpdateContact, UpdateDomain
Instance Method Summary collapse
-
#initialize(source = nil, context = nil) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(source = nil, context = nil) ⇒ Command
Returns a new instance of Command.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/kono_epp_client/commands/command.rb', line 3 def initialize(source = nil, context = nil) super(source, context) add(::REXML::XMLDecl.new("1.0", "UTF-8", "no")) epp = add_element("epp", {"xmlns" => "urn:ietf:params:xml:ns:epp-1.0", "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance", "xsi:schemaLocation" => "urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"}) epp.add_element("command") end |