Class: AchClient::Abstract::AchBatch

Inherits:
Object
  • Object
show all
Defined in:
lib/ach_client/providers/abstract/ach_batch.rb

Overview

Base class for sending batched ACH transactions to various providers

Instance Method Summary collapse

Constructor Details

#initialize(ach_transactions: []) ⇒ AchBatch

Returns a new instance of AchBatch.

Parameters:

  • ach_transactions (Array) (defaults to: [])

    List of AchTransaction objects to batch



10
11
12
# File 'lib/ach_client/providers/abstract/ach_batch.rb', line 10

def initialize(ach_transactions: [])
  @ach_transactions = ach_transactions
end

Instance Method Details

#send_batchArray<String>

Sends the batch to the provider, and returns a tracking identifier processing later on.

Returns:

  • (Array<String>)

    Identifiers to use to poll for result of batch

Raises:



18
19
20
# File 'lib/ach_client/providers/abstract/ach_batch.rb', line 18

def send_batch
  raise AbstractMethodError
end