Class: EPP::Domain::Check
- Defined in:
- lib/epp-client/domain/check.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize(*names) ⇒ Check
constructor
A new instance of Check.
- #name ⇒ Object
- #to_xml ⇒ Object
Methods inherited from Command
Methods included from XMLHelpers
#as_xml, #epp_namespace, #epp_node, #xml_document, #xml_namespace, #xml_node
Constructor Details
#initialize(*names) ⇒ Check
Returns a new instance of Check.
6 7 8 |
# File 'lib/epp-client/domain/check.rb', line 6 def initialize(*names) @names = names.flatten end |
Instance Method Details
#name ⇒ Object
10 11 12 |
# File 'lib/epp-client/domain/check.rb', line 10 def name 'check' end |
#to_xml ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/epp-client/domain/check.rb', line 14 def to_xml node = super @names.each do |name| node << domain_node('name', name) end node end |