Sha256: 9496b0b779e8ff44e44db2b393bd35bbccdd450d2b05bf3c167bf32b0ec82111
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 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(transaction) r = super r.currate = (transaction / '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.include ::EacRailsUtils::Patches::OfxParser::OfxParser end unless ::OfxParser::Transaction.included_modules.include?( ::EacRailsUtils::Patches::OfxParser::Transaction ) ::OfxParser::Transaction.include ::EacRailsUtils::Patches::OfxParser::Transaction end
Version data entries
4 entries across 4 versions & 1 rubygems