Class: AchClient::AchResponse
- Inherits:
-
Object
- Object
- AchClient::AchResponse
- Defined in:
- lib/ach_client/objects/responses/ach_response.rb
Overview
Abstract Response wrapper for the various ACH response statuses
Direct Known Subclasses
ProcessingAchResponse, ReturnedAchResponse, SettledAchResponse
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Amount of the processed ACH.
-
#date ⇒ Object
readonly
Amount of the processed ACH.
Instance Method Summary collapse
-
#initialize(amount:, date:) ⇒ AchResponse
constructor
A new instance of AchResponse.
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
#amount ⇒ Object (readonly)
Amount of the processed ACH
6 7 8 |
# File 'lib/ach_client/objects/responses/ach_response.rb', line 6 def amount @amount end |
#date ⇒ Object (readonly)
Amount of the processed ACH
6 7 8 |
# File 'lib/ach_client/objects/responses/ach_response.rb', line 6 def date @date end |