Class: NominetEPP::Domain::Unrenew
Constant Summary
collapse
- NAMESPACE =
'http://www.nominet.org.uk/epp/xml/std-unrenew-1.0'
Instance Attribute Summary
Attributes inherited from Request
#command, #extension
Instance Method Summary
collapse
#command, #namespaces, #schemaLocation, #schema_name, #set_namespaces, #x_namespace, #x_node, #x_schemaLocation
Methods inherited from Request
#namespaces, #xml_namespace, #xml_node
Constructor Details
#initialize(*names) ⇒ Unrenew
Returns a new instance of Unrenew.
6
7
8
|
# File 'lib/nominet-epp/requests/domain/unrenew.rb', line 6
def initialize(*names)
@names = names
end
|
Instance Method Details
#command_name ⇒ Object
10
11
12
|
# File 'lib/nominet-epp/requests/domain/unrenew.rb', line 10
def command_name
'update'
end
|
#namespace_name ⇒ Object
13
14
15
|
# File 'lib/nominet-epp/requests/domain/unrenew.rb', line 13
def namespace_name
'u'
end
|
#namespace_uri ⇒ Object
16
17
18
|
# File 'lib/nominet-epp/requests/domain/unrenew.rb', line 16
def namespace_uri
NAMESPACE
end
|
#to_xml ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/nominet-epp/requests/domain/unrenew.rb', line 20
def to_xml
@namespaces ||= {}
node = x_node('unrenew')
x_schemaLocation(node)
@names.each do |name|
node << x_node('domainName', name)
end
node
end
|