Class: ACH::Batch

Inherits:
Component show all
Includes:
Builder
Defined in:
lib/ach/batch.rb

Overview

Represents an ACH::Component, which is located under ACH::File and contains a variable number of ACH::Record::Entry and ACH::Record::Addenda records itself.

Defined Under Namespace

Modules: Builder Classes: Control, Header

Constant Summary

Constants included from Constants

Constants::BATCH_ADDENDA_RECORD_TYPE, Constants::BATCH_CONTROL_RECORD_TYPE, Constants::BATCH_ENTRY_RECORD_TYPE, Constants::BATCH_HEADER_RECORD_TYPE, Constants::BLOCKING_FACTOR, Constants::FILE_CONTROL_RECORD_TYPE, Constants::FILE_HEADER_RECORD_TYPE, Constants::FORMAT_CODE, Constants::RECORD_SIZE, Constants::ROWS_DELIMITER

Instance Attribute Summary

Attributes inherited from Component

#attributes

Method Summary

Methods included from Builder

#entry_addenda_count, #entry_hash, #has_credit?, #has_debit?, #to_ach, #total_credit_amount, #total_debit_amount

Methods inherited from Component

#after_initialize, #build_control, #build_header, #control, #fields_for, has_many, #header, inherited, #initialize, #method_missing, method_missing

Methods included from Validations

#errors, #valid?

Constructor Details

This class inherits a constructor from ACH::Component

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ACH::Component