App::HomeBank2Ledger::Formatter - Abstract class for formatting a ledger
version 0.009
my $formatter = App::HomeBank2Ledger::Formatter->new( type => 'ledger', ); print $formatter->format($ledger);
This class formats ledger data as for a file.
Get the type of formatter.
Get the name or title of the ledger.
Get the filepath where the ledger data came from.
Get the number of characters to use for the account column.
$formatter = App::HomeBank2Ledger::Formatter->new(type => $format);
Construct a new formatter object.
$str = $formatter->format($ledger);
Do the actual formatting of ledger data into a serialized form.
This must be overridden by subclasses.
App::HomeBank2Ledger::Formatter::Beancount
App::HomeBank2Ledger::Formatter::Ledger
Please report any bugs or feature requests on the bugtracker website https://github.com/chazmcgarvey/homebank2ledger/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Charles McGarvey <chazmcgarvey@brokenzipper.com>
This software is Copyright (c) 2019 by Charles McGarvey.
This is free software, licensed under:
The MIT (X11) License
To install App::HomeBank2Ledger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::HomeBank2Ledger
CPAN shell
perl -MCPAN -e shell install App::HomeBank2Ledger
For more information on module installation, please visit the detailed CPAN module installation guide.