Class: KonoEppDeleteContact

Inherits:
KonoEppCommand show all
Defined in:
lib/epp/epp_command/delete_contact.rb

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ KonoEppDeleteContact

Returns a new instance of KonoEppDeleteContact.



2
3
4
5
6
7
8
9
10
11
12
13
14
# 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