Sha256: 1a56d5475bb78ee72cd81fa6bbce4a181fb064b06080366df2d18258158c89ad

Contents?: true

Size: 732 Bytes

Versions: 6

Compression:

Stored size: 732 Bytes

Contents

# frozen_string_literal: true

module Processors
  # UBS Switzerland Chequing accounts processor
  class UBSChequing < Processor
    # @param filepath [String] path to the CSV file
    def initialize(filepath:)
      transformers = [
        Transformers::Cleaners::UBSChequing.new,
        Transformers::Formatters::UBSChequing.new
      ]
      statement = Documents::Statements::UBSChequing.new(filepath: filepath)
      ynab4_file_options = { format: :flows,
                             institution_name: statement.institution_name }
      ynab4_file = Documents::YNAB4Files::YNAB4File.new(ynab4_file_options)

      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/ubs_chequing_processor.rb
ynab_convert-2.0.5 lib/ynab_convert/processors/ubs_chequing_processor.rb
ynab_convert-2.0.4 lib/ynab_convert/processors/ubs_chequing_processor.rb
ynab_convert-2.0.3 lib/ynab_convert/processors/ubs_chequing_processor.rb
ynab_convert-2.0.1 lib/ynab_convert/processors/ubs_chequing_processor.rb
ynab_convert-2.0.0 lib/ynab_convert/processors/ubs_chequing_processor.rb