Class: ACH::Records::EntryDetail
- Defined in:
- lib/ach/records/entry_detail.rb
Direct Known Subclasses
Constant Summary collapse
- CREDIT_RECORD_TRANSACTION_CODE_ENDING_DIGITS =
["0", "1", "2", "3", "4"]
Constants included from FieldIdentifiers
FieldIdentifiers::ENCODING_OPTIONS
Instance Attribute Summary collapse
-
#sorter ⇒ Object
Returns the value of attribute sorter.
Instance Method Summary collapse
Methods inherited from Record
Methods included from FieldIdentifiers
#const_field, #field, #left_justify, #spaceless_routing_field
Instance Attribute Details
#sorter ⇒ Object
Returns the value of attribute sorter.
7 8 9 |
# File 'lib/ach/records/entry_detail.rb', line 7 def sorter @sorter end |
Instance Method Details
#amount_value ⇒ Object
34 35 36 |
# File 'lib/ach/records/entry_detail.rb', line 34 def amount_value return self.amount end |
#credit? ⇒ Boolean
26 27 28 |
# File 'lib/ach/records/entry_detail.rb', line 26 def credit? CREDIT_RECORD_TRANSACTION_CODE_ENDING_DIGITS.include?(@transaction_code[1..1]) end |
#debit? ⇒ Boolean
30 31 32 |
# File 'lib/ach/records/entry_detail.rb', line 30 def debit? !credit? end |