Class: Processors::Wise

Inherits:
Processor show all
Defined in:
lib/ynab_convert/processors/wise_processor.rb

Overview

Wise card accounts processor

Instance Method Summary collapse

Methods inherited from Processor

#to_ynab!

Constructor Details

#initialize(filepath:) ⇒ Wise

Returns a new instance of Wise.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ynab_convert/processors/wise_processor.rb', line 6

def initialize(filepath:)
  statement = Documents::Statements::Wise.new(filepath: filepath)
  ynab4_file = Documents::YNAB4Files::YNAB4File.new(
    institution_name: statement.institution_name, format: :amounts
  )
  transformers = [Transformers::Cleaners::Wise.new,
                  Transformers::Formatters::Wise.new,
                  Transformers::Enhancers::Wise.new]

  super(statement: statement, ynab4_file: ynab4_file, transformers:
transformers)
end