Sha256: 7c47295ca8a396e8159ac4c8ea6ea41e9d4b9151631bb57cf2a2292d0001d243

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

# frozen_string_literal: true

module Processors
  # UBS Switzerland Credit Card accounts processor
  class UBSCredit < Processor
    def initialize(filepath:)
      statement = Documents::Statements::UBSCredit.new(filepath: filepath)
      ynab4_file_options = { institution_name: statement.institution_name }
      ynab4_file = Documents::YNAB4Files::YNAB4File.new(ynab4_file_options)
      transformers = [Transformers::Cleaners::UBSCredit.new,
                      Transformers::Formatters::UBSCredit.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/ubs_credit_processor.rb
ynab_convert-2.0.5 lib/ynab_convert/processors/ubs_credit_processor.rb
ynab_convert-2.0.4 lib/ynab_convert/processors/ubs_credit_processor.rb
ynab_convert-2.0.3 lib/ynab_convert/processors/ubs_credit_processor.rb
ynab_convert-2.0.1 lib/ynab_convert/processors/ubs_credit_processor.rb
ynab_convert-2.0.0 lib/ynab_convert/processors/ubs_credit_processor.rb