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.60.2 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.60.1 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.17.1 lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.60.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.59.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.58.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.57.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.56.1 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.56.0 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.7 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.6 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.5 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.4 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.17.0 lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.3 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.16.0 lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.2 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.15.1 lib/aranha/parsers/patches/ofx_parser.rb
aranha-parsers-0.15.0 lib/aranha/parsers/patches/ofx_parser.rb
eac_tools-0.55.1 sub/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb