Class: EPP::Domain::Transfer
- Defined in:
- lib/epp-client/domain/transfer.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize(name, period = nil, auth_info = {}) ⇒ Transfer
constructor
@auth_info should be an XML::Node with whatever is required.
- #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
Instance Method Details
#name ⇒ Object
13 14 15 |
# File 'lib/epp-client/domain/transfer.rb', line 13 def name 'transfer' end |
#to_xml ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/epp-client/domain/transfer.rb', line 17 def to_xml node = super node << domain_node('name', @name) node << period_to_xml(@period) if @period node << auth_info_to_xml(@auth_info) unless @auth_info.empty? node end |