lib/aba/transaction.rb in aba-1.0.1 vs lib/aba/transaction.rb in aba-1.0.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + class Aba class Transaction < Entry include Aba::Validations attr_accessor :account_number, :transaction_code, :amount, :account_name, @@ -18,9 +20,10 @@ # Transaction Code validates_transaction_code :transaction_code # Amount validates_integer :amount + validates_max_length :amount, 10 # Account Name validates_max_length :account_name, 32 validates_becs :account_name