Module: EPPClient::HostmasterRGP
- Included in:
- Hostmaster
- Defined in:
- lib/epp-client/hostmaster-rgp.rb
Instance Method Summary collapse
-
#domain_restore(domain) ⇒ Object
Restore a domain Takes a single fully qualified domain name for argument.:.
- #domain_restore_xml(domain) ⇒ Object
Instance Method Details
#domain_restore(domain) ⇒ Object
Restore a domain Takes a single fully qualified domain name for argument.:
Returns an array of rgpStatus.
22 23 24 25 |
# File 'lib/epp-client/hostmaster-rgp.rb', line 22 def domain_restore(domain) response = send_request(domain_restore_xml(domain)) get_result(:xml => response) end |
#domain_restore_xml(domain) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/epp-client/hostmaster-rgp.rb', line 3 def domain_restore_xml(domain) command do |xml| xml.update do xml.domain :update, 'xmlns:domain' => EPPClient::SCHEMAS_URL['domain-1.1'] do xml.domain :name, domain end end xml.extension do xml.rgp :update, 'xmlns:rgp' => EPPClient::SCHEMAS_URL['rgp-1.1'] do xml.rgp :restore, op: 'request' end end end end |