Class: AchClient::AchResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/ach_client/objects/responses/ach_response.rb

Overview

Abstract Response wrapper for the various ACH response statuses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amount:, date:) ⇒ AchResponse

Returns a new instance of AchResponse.



9
10
11
12
13
# File 'lib/ach_client/objects/responses/ach_response.rb', line 9

def initialize(amount:, date:)
  raise AbstractMethodError if self.class == AchClient::AchResponse
  @amount = amount
  @date = date
end

Instance Attribute Details

#amountObject (readonly)

Amount of the processed ACH



6
7
8
# File 'lib/ach_client/objects/responses/ach_response.rb', line 6

def amount
  @amount
end

#dateObject (readonly)

Amount of the processed ACH



6
7
8
# File 'lib/ach_client/objects/responses/ach_response.rb', line 6

def date
  @date
end