Add a property to TextLedger to hold the default file path for ledger and price entries.
Identify all abstract methods in the LedgerEngine class that are not currently implemented in TextLedger.
Implement these methods in TextLedger.
Integration into pyledger Architecture
TextLedger stores ledger, and price data in multiple files, not in a single file. Adding ledger and price entries therefore requires an additional 'file' argument with the file path. This argument is not available in the abstract LedgerEngine method definition, which complicates the integration with the abstract class. We can work around the problem by setting a default file path as a property in TextLedger and using this default if no specific storage location is provided.
Tasks
TextLedger
to hold the default file path for ledger and price entries.LedgerEngine
class that are not currently implemented inTextLedger
.TextLedger
.Integration into pyledger Architecture
TextLedger stores ledger, and price data in multiple files, not in a single file. Adding ledger and price entries therefore requires an additional 'file' argument with the file path. This argument is not available in the abstract LedgerEngine method definition, which complicates the integration with the abstract class. We can work around the problem by setting a default file path as a property in TextLedger and using this default if no specific storage location is provided.