Class: Processors::Example

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

Overview

Example Processor

Instance Method Summary collapse

Methods inherited from Processor

#to_ynab!

Constructor Details

#initialize(filepath:) ⇒ Example

Returns a new instance of Example.

Parameters:

  • filepath (String)

    path to the CSV file



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/ynab_convert/processors/example_processor.rb', line 11

def initialize(filepath:)
  transformers = [
    Transformers::Formatters::Example.new
  ]
  statement = Documents::Statements::Example.new(filepath: filepath)
  ynab4_file = Documents::YNAB4Files::YNAB4File.new(
    format: :flows, institution_name: statement.institution_name
  )

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