Class: AchClient::ReturnCode
- Inherits:
-
Object
- Object
- AchClient::ReturnCode
- Defined in:
- lib/ach_client/objects/return_code.rb
Overview
Represents an Ach Return code. Consult NACHA documentation for a full list See config/return_codes.yml for our list.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#description ⇒ Object
Returns the value of attribute description.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(code:, description:, reason: nil) ⇒ ReturnCode
constructor
Constructs a Ach return code.
Constructor Details
#initialize(code:, description:, reason: nil) ⇒ ReturnCode
Constructs a Ach return code
14 15 16 17 18 |
# File 'lib/ach_client/objects/return_code.rb', line 14 def initialize(code:, description:, reason: nil) @code = code @description = description @reason = reason end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/ach_client/objects/return_code.rb', line 6 def code @code end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/ach_client/objects/return_code.rb', line 6 def description @description end |
#reason ⇒ Object
Returns the value of attribute reason.
6 7 8 |
# File 'lib/ach_client/objects/return_code.rb', line 6 def reason @reason end |