Class: EPP::Contact::Check

Inherits:
Command
  • Object
show all
Defined in:
lib/epp-client/contact/check.rb

Constant Summary

Constants inherited from Command

EPP::Contact::Command::DISCLOSE_ORDER

Instance Attribute Summary

Attributes inherited from Command

#namespaces

Instance Method Summary collapse

Methods inherited from Command

#set_namespaces

Methods included from XMLHelpers

#as_xml, #epp_namespace, #epp_node, #xml_document, #xml_namespace, #xml_node

Constructor Details

#initialize(*ids) ⇒ Check

Returns a new instance of Check.



6
7
8
# File 'lib/epp-client/contact/check.rb', line 6

def initialize(*ids)
  @ids = ids.flatten
end

Instance Method Details

#nameObject



10
11
12
# File 'lib/epp-client/contact/check.rb', line 10

def name
  'check'
end

#to_xmlObject



14
15
16
17
18
19
20
# File 'lib/epp-client/contact/check.rb', line 14

def to_xml
  node = super
  @ids.each do |id|
    node << contact_node('id', id)
  end
  node
end