Class: Transformers::Enhancers::Enhancer

Inherits:
Object
  • Object
show all
Defined in:
lib/ynab_convert/transformers/enhancers/enhancer.rb

Overview

An Enhancer parses YNAB4 rows (Date, Payee, Memo, Amount or Inflow and Outflow) and augments the data therein. A typical case would be converting from one currency to the user’s YNAB base currency when the Statement is in a different currency (see n26_enhancer.rb for an example)

Direct Known Subclasses

N26, Wise

Instance Method Summary collapse

Constructor Details

#initializeEnhancer

Returns a new instance of Enhancer.



11
# File 'lib/ynab_convert/transformers/enhancers/enhancer.rb', line 11

def initialize; end

Instance Method Details

#run(_row) ⇒ CSV::Row

Returns The enhanced row.

Parameters:

  • _row (CSV::Row)

    The row to enhance

Returns:

  • (CSV::Row)

    The enhanced row

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/ynab_convert/transformers/enhancers/enhancer.rb', line 15

def run(_row)
  raise NotImplementedError, :run
end