class Aba::Entry

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/aba/entry.rb, line 3
def initialize(attrs = {})
  attrs.each do |key, value|
    send("#{key}=", value)
  end
end

Public Instance Methods

credit?() click to toggle source
# File lib/aba/entry.rb, line 9
def credit?
  Validations::CREDIT_TRANSACTION_CODES.include?(transaction_code.to_i)
end
debit?() click to toggle source
# File lib/aba/entry.rb, line 13
def debit?
  Validations::DEBIT_TRANSACTION_CODES.include?(transaction_code.to_i)
end