Class: KonoEppInfoDomain
- Inherits:
-
KonoEppCommand
- Object
- REXML::Document
- KonoEppCommand
- KonoEppInfoDomain
- Defined in:
- lib/epp/epp_command/info_domain.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ KonoEppInfoDomain
constructor
A new instance of KonoEppInfoDomain.
Constructor Details
#initialize(name) ⇒ KonoEppInfoDomain
Returns a new instance of KonoEppInfoDomain.
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/epp/epp_command/info_domain.rb', line 2 def initialize( name ) super( nil, nil ) command = root.elements['command'] info = command.add_element( "info" ) domain_info = info.add_element( "domain:info", { "xmlns:domain" => "urn:ietf:params:xml:ns:domain-1.0", "xsi:schemaLocation" => "urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd" } ) domain_name = domain_info.add_element "domain:name", { "hosts" => "all" } domain_name.text = name end |