Sha256: 385fc8db328635deb8771821b423cd662a17abaabd1cf72e9922722faf7e1ca1

Contents?: true

Size: 696 Bytes

Versions: 6

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

require 'ynab_convert/documents'
require 'ynab_convert/transformers'
require 'ynab_convert/processors/processor'

module Processors
  # Example Processor
  class Example < Processor
    # @param filepath [String] path to the CSV file
    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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ynab_convert-2.0.6 lib/ynab_convert/processors/example_processor.rb
ynab_convert-2.0.5 lib/ynab_convert/processors/example_processor.rb
ynab_convert-2.0.4 lib/ynab_convert/processors/example_processor.rb
ynab_convert-2.0.3 lib/ynab_convert/processors/example_processor.rb
ynab_convert-2.0.1 lib/ynab_convert/processors/example_processor.rb
ynab_convert-2.0.0 lib/ynab_convert/processors/example_processor.rb