Class: Hbci::Segments::HIRMSv2

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

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, #compile, 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

#allowed_tan_mechanismObject



11
12
13
14
# File 'lib/hbci/segments/hirms.rb', line 11

def allowed_tan_mechanism
  groups_with_status_code = element_groups.select { |eg| eg.respond_to?(:code) && eg.code == '3920' }
  groups_with_status_code.first.parm if groups_with_status_code.any?
end