Sha256: ec453610ea0f407716ba172c34dd324709e29ccfef9877ff03fcb8df04bc3e0b
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true class Aba class Entry def initialize(attrs = {}) attrs.each do |key, value| send("#{key}=", value) end end def credit? Validations::CREDIT_TRANSACTION_CODES.include?(transaction_code.to_i) end def debit? Validations::DEBIT_TRANSACTION_CODES.include?(transaction_code.to_i) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aba-1.0.2 | lib/aba/entry.rb |