Class: KonoEppClient::Commands::DeleteDomain

Inherits:
Command
  • Object
show all
Defined in:
lib/kono_epp_client/commands/delete_domain.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DeleteDomain

Returns a new instance of DeleteDomain.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/kono_epp_client/commands/delete_domain.rb', line 3

def initialize(name)
  super(nil, nil)

  command = root.elements['command']
  delete = command.add_element("delete")

  domain_delete = delete.add_element("domain:delete", {"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_delete.add_element "domain:name"
  domain_name.text = name
end