Class: RVGP::Pta::Ledger::Output::XmlBase::Commodity
- Inherits:
-
Base::Reader
- Object
- Base::Reader
- RVGP::Pta::Ledger::Output::XmlBase::Commodity
- Defined in:
- lib/rvgp/pta/ledger.rb
Overview
A commodity, as defined by ledger’s xml meta-output. This is largely for the purpose of tracking exchange rates that were automatically deduced by ledger during the parsing of a journal. And, which, are stored in the :Ledger::Output::XmlBase#commodities collection. hledger does not have this feature.
Instance Attribute Summary collapse
-
#date ⇒ Time
readonly
The datetime when this commodity was declared or deduced.
-
#price ⇒ RVGP::Journal::Commodity
readonly
The exchange price.
-
#symbol ⇒ String
readonly
A three letter currency code.
Attributes inherited from Base::Reader
Method Summary
Methods inherited from Base::Reader
Instance Attribute Details
#date ⇒ Time (readonly)
The datetime when this commodity was declared or deduced
40 41 42 |
# File 'lib/rvgp/pta/ledger.rb', line 40 def date @date end |
#price ⇒ RVGP::Journal::Commodity (readonly)
The exchange price
40 41 42 |
# File 'lib/rvgp/pta/ledger.rb', line 40 def price @price end |
#symbol ⇒ String (readonly)
A three letter currency code
40 41 42 |
# File 'lib/rvgp/pta/ledger.rb', line 40 def symbol @symbol end |