Aba
The purpose of this gem is to generate an ABA (Australian Banking Association) file. It is a format used by banks to allow for batch transaction.
Usage
require 'aba'
aba = Aba.new(bsb: "123-345", financial_institution: "WPC", user_name: "John Doe",
user_id: "466364", description: "Payroll", process_at: Time.now)
# Add transactions
transactions.each do |t|
aba.transactions << Aba::Transaction.new(
:bsb => "342-342",
:account_number => "3244654",
:amount => amount,
:account_name => "John Doe",
:payment_id => "P2345543",
:transaction_code => 53,
:lodgement_reference => "R435564",
:trace_bsb => "453-543",
:trace_account_number => "45656733",
:name_of_remitter => "Remitter"
)
end
puts aba.to_s
Installation
Add this line to your application's Gemfile:
gem 'aba'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aba
Contributing
- Fork it ( https://github.com/[my-github-username]/aba/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request