Class: KonoEppClient::Commands::CheckContacts
- Defined in:
- lib/kono_epp_client/commands/check_contacts.rb
Instance Method Summary collapse
-
#initialize(ids) ⇒ CheckContacts
constructor
A new instance of CheckContacts.
Constructor Details
#initialize(ids) ⇒ CheckContacts
Returns a new instance of CheckContacts.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/kono_epp_client/commands/check_contacts.rb', line 3 def initialize(ids) super(nil, nil) command = root.elements['command'] info = command.add_element "check" contact_check = info.add_element("contact:check", {"xmlns:contact" => "urn:ietf:params:xml:ns:contact-1.0"}) ids.each do |t| contact_id = contact_check.add_element "contact:id" contact_id.text = t end end |