Class: BankPayments::SwedbankExport::ReconciliationRecord

Inherits:
BankPayments::SpisuRecord show all
Defined in:
lib/bank_payments/swedbank_export/reconciliation_record.rb

Constant Summary collapse

DIGIT_MAP =
{
  '0' => '-',
  '1' => 'J',
  '2' => 'K',
  '3' => 'L',
  '4' => 'M',
  '5' => 'N',
  '6' => 'O',
  '7' => 'P',
  '8' => 'Q',
  '9' => 'R'
}.freeze

Instance Method Summary collapse

Methods inherited from BankPayments::SpisuRecord

define_field, defined_fields, definition_for, #extract_date, #extract_field_value, #extract_raw_value, inherited, #method_missing, #serialize_value, #set_numeric_value, #set_text_value, #set_value, #to_s, #type, #type=

Constructor Details

#initializeReconciliationRecord

Returns a new instance of ReconciliationRecord.



24
25
26
27
# File 'lib/bank_payments/swedbank_export/reconciliation_record.rb', line 24

def initialize
  super
  self.type = '9'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BankPayments::SpisuRecord

Instance Method Details

#sum_amount_foreign=(amount) ⇒ Object



33
34
35
# File 'lib/bank_payments/swedbank_export/reconciliation_record.rb', line 33

def sum_amount_foreign=(amount)
  super reformat_sums(amount)
end

#sum_amount_sek=(amount) ⇒ Object



29
30
31
# File 'lib/bank_payments/swedbank_export/reconciliation_record.rb', line 29

def sum_amount_sek=(amount)
  super reformat_sums(amount)
end