Class: ACH::Records::Addendum::Return

Inherits:
ACH::Records::Addendum show all
Defined in:
lib/ach/records/addendum.rb

Constant Summary

Constants included from FieldIdentifiers

FieldIdentifiers::ENCODING_OPTIONS

Instance Attribute Summary

Attributes inherited from Record

#case_sensitive

Instance Method Summary collapse

Methods inherited from Record

fields, #records_count, #to_ach

Methods included from FieldIdentifiers

#const_field, #field, #left_justify, #spaceless_routing_field

Instance Method Details

#addenda_informationObject



52
53
54
# File 'lib/ach/records/addendum.rb', line 52

def addenda_information
  payment_data[32..75].strip
end

#date_of_deathObject



44
45
46
# File 'lib/ach/records/addendum.rb', line 44

def date_of_death
  Date.parse(payment_data[18..23])
end

#original_entry_trace_numberObject



40
41
42
# File 'lib/ach/records/addendum.rb', line 40

def original_entry_trace_number
  payment_data[3..17]
end

#original_receiving_dfi_identificationObject



48
49
50
# File 'lib/ach/records/addendum.rb', line 48

def original_receiving_dfi_identification
  payment_data[24..31]
end

#reason_codeObject



36
37
38
# File 'lib/ach/records/addendum.rb', line 36

def reason_code
  payment_data[0..2]
end