Sha256: 5647fa5f3d3dce7cefd996ec3c53d9838d91afc283395d783d24b70c0d5314fe

Contents?: true

Size: 898 Bytes

Versions: 108

Compression:

Stored size: 898 Bytes

Contents

# frozen_string_literal: true

require 'ofx-parser'

module Aranha
  module Parsers
    module Patches
      module OfxParser
        module OfxParser
          def self.included(base)
            base.class_eval do
              class << self
                prepend ClassMethods
              end
            end
          end

          module ClassMethods
            def build_transaction(transaction)
              r = super
              r.currate = (transaction / 'CURRENCY/CURRATE').inner_text
              r
            end
          end
        end

        module Transaction
          attr_accessor :currate, :cursym
        end
      end
    end
  end
end

require 'eac_ruby_utils/patch'

::EacRubyUtils.patch(::OfxParser::OfxParser, ::Aranha::Parsers::Patches::OfxParser::OfxParser)
::EacRubyUtils.patch(::OfxParser::Transaction, ::Aranha::Parsers::Patches::OfxParser::Transaction)

Version data entries

108 entries across 108 versions & 3 rubygems

Version Path
ehbrs-tools-0.16.4 vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
ehbrs-tools-0.16.3 vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
ehbrs-tools-0.16.2 vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.7.0 lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.6.1 lib/aranha/parsers/patches/ofx_parser.rb
ehbrs-tools-0.16.1 vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.6.0 lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.5.0 lib/aranha/parsers/patches/ofx_parser.rb