Class: Epics::Z52
- Inherits:
-
GenericRequest
- Object
- GenericRequest
- Epics::Z52
- Defined in:
- lib/epics/z52.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Attributes inherited from GenericRequest
Instance Method Summary collapse
- #header ⇒ Object
-
#initialize(client, from, to) ⇒ Z52
constructor
A new instance of Z52.
Methods inherited from GenericRequest
#auth_signature, #body, #nonce, #root, #timestamp, #to_receipt_xml, #to_transfer_xml, #to_xml
Constructor Details
#initialize(client, from, to) ⇒ Z52
Returns a new instance of Z52.
4 5 6 7 8 |
# File 'lib/epics/z52.rb', line 4 def initialize(client, from, to) super(client) self.from = from self.to = to end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
2 3 4 |
# File 'lib/epics/z52.rb', line 2 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
2 3 4 |
# File 'lib/epics/z52.rb', line 2 def to @to end |
Instance Method Details
#header ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/epics/z52.rb', line 10 def header Nokogiri::XML::Builder.new do |xml| xml.header(authenticate: true) { xml.static { xml.HostID host_id xml.Nonce nonce xml.Timestamp xml.PartnerID partner_id xml.UserID user_id xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de') xml.OrderDetails { xml.OrderType 'Z52' xml.OrderAttribute 'DZHNN' xml.StandardOrderParams { xml.DateRange { xml.Start from xml.End to } } } xml.BankPubKeyDigests { xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256") xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" ) } xml.SecurityMedium '0000' } xml.mutable { xml.TransactionPhase 'Initialisation' } } end.doc.root end |