Class: KonoEppInfoContact
- Inherits:
-
KonoEppCommand
- Object
- REXML::Document
- KonoEppCommand
- KonoEppInfoContact
- Defined in:
- lib/epp/epp_command/info_contact.rb
Instance Method Summary collapse
-
#initialize(id) ⇒ KonoEppInfoContact
constructor
A new instance of KonoEppInfoContact.
Constructor Details
#initialize(id) ⇒ KonoEppInfoContact
Returns a new instance of KonoEppInfoContact.
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/epp/epp_command/info_contact.rb', line 2 def initialize( id ) super( nil, nil ) command = root.elements['command'] info = command.add_element "info" contact_info = info.add_element( "contact:info", { "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_info.add_element "contact:id" contact_id.text = id end |