Sha256: 5bc954746b94da4674bf2dc91e0e267d9d039a330acd0a54760a4c73e416a5f1

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

require 'ynab_convert/transformers'

module Transformers
  module Formatters
    # Formats N26 statement values to YNAB4 value
    class N26 < Formatter
      def initialize
        super({ date: [0], payee: [1], amount: [5] })
      end

      # All amounts are always in EUR
      def memo(_row)
        'EUR'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ynab_convert-2.0.6 lib/ynab_convert/transformers/formatters/n26_formatter.rb
ynab_convert-2.0.5 lib/ynab_convert/transformers/formatters/n26_formatter.rb
ynab_convert-2.0.4 lib/ynab_convert/transformers/formatters/n26_formatter.rb
ynab_convert-2.0.3 lib/ynab_convert/transformers/formatters/n26_formatter.rb
ynab_convert-2.0.1 lib/ynab_convert/transformers/formatters/n26_formatter.rb
ynab_convert-2.0.0 lib/ynab_convert/transformers/formatters/n26_formatter.rb