Class: Hbci::Segments::HISALv7
- Inherits:
-
Hbci::Segment
- Object
- Hbci::Segment
- Hbci::Segments::HISALv7
- Defined in:
- lib/hbci/segments/hisal.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
#booked_amount ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/hbci/segments/hisal.rb', line 91 def booked_amount sign = case booked.credit_debit when 'C' then 1 when 'D' then -1 end sign * Monetize.parse(booked.value, booked.curr) end |