class KonoEppDeleteContact

Public Class Methods

new( id ) click to toggle source
Calls superclass method KonoEppCommand::new
# File lib/epp/epp_command/delete_contact.rb, line 2
 def initialize( id )
   super( nil, nil )

   command = root.elements['command']

   delete = command.add_element "delete"

   contact_delete = delete.add_element( "contact:delete", { "xmlns:contact" => "urn:ietf:params:xml:ns:contact-1.0",
                                                            "xsi:schemaLocation" => "urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd" } )

   contact_id = contact_delete.add_element "contact:id"
   contact_id.text = id
end