X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank2ledger;a=blobdiff_plain;f=lib%2FApp%2FHomeBank2Ledger%2FLedger.pm;fp=lib%2FApp%2FHomeBank2Ledger%2FLedger.pm;h=258571ca49d6c62acb42618449df1ebb759995a8;hp=18522cb55861a86f1557e4df76fb0ad181130626;hb=185d2cc01e85fc41bd14b06a0b1290c2e25a874a;hpb=71591e40fa4a522e41ed7283cce39780f4ef8cb5 diff --git a/lib/App/HomeBank2Ledger/Ledger.pm b/lib/App/HomeBank2Ledger/Ledger.pm index 18522cb..258571c 100644 --- a/lib/App/HomeBank2Ledger/Ledger.pm +++ b/lib/App/HomeBank2Ledger/Ledger.pm @@ -5,7 +5,7 @@ package App::HomeBank2Ledger::Ledger; use warnings; use strict; -our $VERSION = '0.001'; # VERSION +our $VERSION = '0.002'; # VERSION sub new { @@ -63,7 +63,7 @@ App::HomeBank2Ledger::Ledger - Ledger data representation =head1 VERSION -version 0.001 +version 0.002 =head1 SYNOPSIS @@ -86,59 +86,17 @@ Here is a specification for the substructures: This is a fully-qualified account name. Names may contain colons for representing a hierarchy of accounts. Examples: -=head1 ATTRIBUTES - -=head2 accounts - -Get an arrayref of accounts. - -=head2 commodities - -Get an arrayref of commodities. - -=head2 payees - -Get an arrayref of payees. - -=head2 tags - -Get an arrayref of tags. - -=head2 transactions - -Get an arrayref of transactions. - -=head1 METHODS - -=head2 new - - $ledger = App::HomeBank2Ledger::Ledger->new(%ledger_data); - -Construct a new ledger instance. - -=head2 add_accounts - -Add accounts. - -=head2 add_commodities - -Add commodities. - -=head2 add_payees +=over 4 -Add payees. - -=head2 add_tags +=item * -Add tags. +"Assets:Bank:Chase1234" -=head2 add_transactions +=item * -Add transactions. +"Liabilities:Credit Card:CapitalOne" -=for: list -* "Assets:Bank:Chase1234" -* "Liabilities:Credit Card:CapitalOne" +=back =head2 commodity @@ -191,6 +149,56 @@ This is a hashref like this: ], } +=head1 ATTRIBUTES + +=head2 accounts + +Get an arrayref of accounts. + +=head2 commodities + +Get an arrayref of commodities. + +=head2 payees + +Get an arrayref of payees. + +=head2 tags + +Get an arrayref of tags. + +=head2 transactions + +Get an arrayref of transactions. + +=head1 METHODS + +=head2 new + + $ledger = App::HomeBank2Ledger::Ledger->new(%ledger_data); + +Construct a new ledger instance. + +=head2 add_accounts + +Add accounts. + +=head2 add_commodities + +Add commodities. + +=head2 add_payees + +Add payees. + +=head2 add_tags + +Add tags. + +=head2 add_transactions + +Add transactions. + =head1 BUGS Please report any bugs or feature requests on the bugtracker website