Sha256: f2a0f2892999f586ae77820f19d22eee77d8c087ef20164851bbb079140f8dbf

Contents?: true

Size: 608 Bytes

Versions: 6

Compression:

Stored size: 608 Bytes

Contents

# frozen_string_literal: true

module Transformers
  module Enhancers
    # An Enhancer parses YNAB4 rows (Date, Payee, Memo, Amount or Inflow and
    # Outflow) and augments the data therein.
    # A typical case would be converting from one currency to the user's YNAB
    # base currency when the Statement is in a different currency (see
    # n26_enhancer.rb for an example)
    class Enhancer
      def initialize; end

      # @param _row [CSV::Row] The row to enhance
      # @return [CSV::Row] The enhanced row
      def run(_row)
        raise NotImplementedError, :run
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ynab_convert-2.0.6 lib/ynab_convert/transformers/enhancers/enhancer.rb
ynab_convert-2.0.5 lib/ynab_convert/transformers/enhancers/enhancer.rb
ynab_convert-2.0.4 lib/ynab_convert/transformers/enhancers/enhancer.rb
ynab_convert-2.0.3 lib/ynab_convert/transformers/enhancers/enhancer.rb
ynab_convert-2.0.1 lib/ynab_convert/transformers/enhancers/enhancer.rb
ynab_convert-2.0.0 lib/ynab_convert/transformers/enhancers/enhancer.rb