Class: ACH::Records::EntryDetail

Inherits:
Record
  • Object
show all
Defined in:
lib/ach/records/entry_detail.rb

Direct Known Subclasses

CtxEntryDetail

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

Instance Method Summary collapse

Methods inherited from Record

fields, #to_ach

Methods included from FieldIdentifiers

#const_field, #field, #left_justify, #spaceless_routing_field

Instance Attribute Details

#sorterObject

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_valueObject



34
35
36
# File 'lib/ach/records/entry_detail.rb', line 34

def amount_value
  return self.amount
end

#credit?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


30
31
32
# File 'lib/ach/records/entry_detail.rb', line 30

def debit?
  !credit?
end