Class: Epics::HEV
- Inherits:
-
GenericRequest
- Object
- GenericRequest
- Epics::HEV
- Defined in:
- lib/epics/hev.rb
Instance Attribute Summary
Attributes inherited from GenericRequest
#client, #options, #transaction_id
Instance Method Summary collapse
Methods inherited from GenericRequest
#auth_signature, #header, #initialize, #nonce, #timestamp, #to_receipt_xml, #to_transfer_xml
Constructor Details
This class inherits a constructor from Epics::GenericRequest
Instance Method Details
#body ⇒ Object
6 7 8 9 10 |
# File 'lib/epics/hev.rb', line 6 def body Nokogiri::XML::Builder.new do |xml| xml.HostID host_id end.doc.root end |
#root ⇒ Object
2 3 4 |
# File 'lib/epics/hev.rb', line 2 def root "ebicsHEVRequest" end |
#to_xml ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/epics/hev.rb', line 12 def to_xml Nokogiri::XML::Builder.new do |xml| xml.send(root, 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'http://www.ebics.org/H000 http://www.ebics.org/H000/ebics_hev.xsd', 'xmlns' => 'http://www.ebics.org/H000') { xml.parent.add_child(body) } end.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML, encoding: 'utf-8') end |