Class: RVGP::Pta::HLedger::Output::JsonBase
- Inherits:
-
Object
- Object
- RVGP::Pta::HLedger::Output::JsonBase
- Defined in:
- lib/rvgp/pta/hledger.rb
Overview
This is a base class from which RVGP::Pta::HLedger’s outputs inherit. This class mostly just provides helpers for dealing with the json output that hledger produces.
Instance Attribute Summary collapse
-
#json ⇒ Json
readonly
a parsed representation of the output from hledger.
-
#pricer ⇒ RVGP::Journal::Pricer
readonly
A price exchanger, to use for any currency exchange lookups.
Instance Method Summary collapse
-
#initialize(json, options) ⇒ JsonBase
constructor
Declare the class, and initialize with the relevant options.
Constructor Details
Instance Attribute Details
#json ⇒ Json (readonly)
a parsed representation of the output from hledger
28 29 30 |
# File 'lib/rvgp/pta/hledger.rb', line 28 def json @json end |
#pricer ⇒ RVGP::Journal::Pricer (readonly)
A price exchanger, to use for any currency exchange lookups
28 29 30 |
# File 'lib/rvgp/pta/hledger.rb', line 28 def pricer @pricer end |