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
eac_tools-0.55.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.54.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.53.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.52.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.51.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.50.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.49.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.48.1 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.48.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.47.2 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.47.1 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.47.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.46.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.45.2 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.45.1 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.45.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.44.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.43.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.42.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.41.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb