Sha256: b05482184abd4586b5a5273778816cb852e9aeb55a97dcd0e6c10dfb7d95d436

Contents?: true

Size: 619 Bytes

Versions: 6

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

module Processors
  # Wise card accounts processor
  class Wise < Processor
    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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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