Sha256: 0c9828424afc8b72af2ed2d2c1727bb359a93535bf676bd4d4eef385298db4c4
Contents?: true
Size: 998 Bytes
Versions: 16
Compression:
Stored size: 998 Bytes
Contents
# frozen_string_literal: true require 'ofx-parser' module EacRailsUtils 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(t) r = super r.currate = (t / 'CURRENCY/CURRATE').inner_text r end end end module Transaction attr_accessor :currate, :cursym end end end end unless ::OfxParser::OfxParser.included_modules.include?( ::EacRailsUtils::Patches::OfxParser::OfxParser ) ::OfxParser::OfxParser.send(:include, ::EacRailsUtils::Patches::OfxParser::OfxParser) end unless ::OfxParser::Transaction.included_modules.include?( ::EacRailsUtils::Patches::OfxParser::Transaction ) ::OfxParser::Transaction.send(:include, ::EacRailsUtils::Patches::OfxParser::Transaction) end
Version data entries
16 entries across 16 versions & 1 rubygems