lib/aba/entry.rb in aba-0.5.0 vs lib/aba/entry.rb in aba-1.0.0
- old
+ new
@@ -5,13 +5,13 @@
send("#{key}=", value)
end
end
def credit?
- (50..57).include?(transaction_code.to_i)
+ Validations::CREDIT_TRANSACTION_CODES.include?(transaction_code.to_i)
end
def debit?
- transaction_code.to_i == 13
+ Validations::DEBIT_TRANSACTION_CODES.include?(transaction_code.to_i)
end
end
end