Class: Hbci::Segments::HNSHKv4

Inherits:
Hbci::Segment show all
Defined in:
lib/hbci/segments/hnshk.rb

Overview

Instance Attribute Summary

Attributes inherited from Hbci::Segment

#defined_element_groups, #dialog, #element_groups, #message, #request_message

Instance Method Summary collapse

Methods inherited from Hbci::Segment

#build, element, element_group, element_groups_to_be_defined, fill, #initialize, #to_s

Constructor Details

This class inherits a constructor from Hbci::Segment

Instance Method Details

#compileObject



64
65
66
67
68
69
# File 'lib/hbci/segments/hnshk.rb', line 64

def compile
  self.security_reference = request_message.sec_ref
  self.security_identification_details.party_identification = request_message.dialog ? request_message.dialog.system_id : 0
  self.tan_mechanism = request_message.dialog.tan_mechanism if request_message.dialog && request_message.dialog.tan_mechanism
  set_credentials
end