Class: ACH::Records::Record

Inherits:
Object
  • Object
show all
Extended by:
FieldIdentifiers
Defined in:
lib/ach/records/record.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from FieldIdentifiers

const_field, field, left_justify, routing_field, spaceless_routing_field

Class Method Details

.fieldsObject



7
8
9
# File 'lib/ach/records/record.rb', line 7

def fields
  @fields
end

Instance Method Details

#to_achObject



14
15
16
# File 'lib/ach/records/record.rb', line 14

def to_ach
  self.class.fields.collect { |f| send("#{f}_to_ach") }.join('').upcase
end