class Ach::SecurityHeaderRecord

Attributes

security_header[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/ach/creator.rb, line 161
def initialize(options={})
  @security_header = options[:security_header]
  @write_to_file = options[:write_to_file]
  encode
end

Protected Instance Methods

encode() click to toggle source
# File lib/ach/creator.rb, line 169
def encode
  begin
    file = @security_header.strip
    Ach::Creator.write_header(file,@write_to_file)
  rescue Exception => ex
    puts "Exception while writing ach file -- #{ex.class} #{ex.message} #{ex.backtrace.pp_s}"
  end
end