Class: KonoEppClient::Commands::DeleteContact
- Defined in:
- lib/kono_epp_client/commands/delete_contact.rb
Instance Method Summary collapse
-
#initialize(id) ⇒ DeleteContact
constructor
A new instance of DeleteContact.
Constructor Details
#initialize(id) ⇒ DeleteContact
Returns a new instance of DeleteContact.
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/kono_epp_client/commands/delete_contact.rb', line 3 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 |