Class: AbaGenerator::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/aba_generator/header.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Header

Returns a new instance of Header.



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/aba_generator/header.rb', line 4

def initialize(options = {})
  [{
    :record_type => 0,
    :reel_sequence_number => "01",
    :institution_code => options[:institution_code],
    :user_name => options[:user_name],
    :user_id => (options[:user_id] || '000000'),
    :description => options[:description],
    :process_date => Time.new.strftime("%d%m%y")
  }]
end