Class: Epics::HPB

Inherits:
GenericRequest show all
Defined in:
lib/epics/hpb.rb

Instance Attribute Summary

Attributes inherited from GenericRequest

#client, #transaction_id

Instance Method Summary collapse

Methods inherited from GenericRequest

#auth_signature, #body, #initialize, #nonce, #timestamp, #to_receipt_xml, #to_transfer_xml, #to_xml

Constructor Details

This class inherits a constructor from Epics::GenericRequest

Instance Method Details

#headerObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/epics/hpb.rb', line 6

def header
   Nokogiri::XML::Builder.new do |xml|
    xml.header(authenticate: true) {
      xml.static {
        xml.HostID host_id
        xml.Nonce nonce
        xml.Timestamp timestamp
        xml.PartnerID partner_id
        xml.UserID user_id
        xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
        xml.OrderDetails {
          xml.OrderType 'HPB'
          xml.OrderAttribute 'DZHNN'
        }
        xml.SecurityMedium '0000'
      }
      xml.mutable ''
    }
  end.doc.root
end

#rootObject



2
3
4
# File 'lib/epics/hpb.rb', line 2

def root
  "ebicsNoPubKeyDigestsRequest"
end