Class: Transformers::Enhancers::Enhancer
- Inherits:
-
Object
- Object
- Transformers::Enhancers::Enhancer
- 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)
Instance Method Summary collapse
-
#initialize ⇒ Enhancer
constructor
A new instance of Enhancer.
-
#run(_row) ⇒ CSV::Row
The enhanced row.
Constructor Details
#initialize ⇒ Enhancer
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.
15 16 17 |
# File 'lib/ynab_convert/transformers/enhancers/enhancer.rb', line 15 def run(_row) raise NotImplementedError, :run end |