module Headache::Definition::Common

Public Class Methods

record_type_code() click to toggle source
# File lib/headache/definition/common.rb, line 27
def self.record_type_code
  record_type = name.demodulize.underscore
  record_type_codes[record_type.to_sym]
end
record_type_codes() click to toggle source
# File lib/headache/definition/common.rb, line 19
def self.record_type_codes
  { file_header: 1,
   batch_header: 5,
          entry: 6,
  batch_control: 8,
   file_control: 9 }
end