Class: Transformers::Formatters::N26

Inherits:
Formatter
  • Object
show all
Defined in:
lib/ynab_convert/transformers/formatters/n26_formatter.rb

Overview

Formats N26 statement values to YNAB4 value

Instance Method Summary collapse

Methods inherited from Formatter

#field, #run

Constructor Details

#initializeN26

Returns a new instance of N26.



9
10
11
# File 'lib/ynab_convert/transformers/formatters/n26_formatter.rb', line 9

def initialize
  super({ date: [0], payee: [1], amount: [5] })
end

Instance Method Details

#memo(_row) ⇒ Object

All amounts are always in EUR



14
15
16
# File 'lib/ynab_convert/transformers/formatters/n26_formatter.rb', line 14

def memo(_row)
  'EUR'
end