Class: GOBL::Currency::ExchangeRate
- Defined in:
- lib/gobl/currency/exchange_rate.rb
Overview
ExchangeRate contains data on the rate to be used when converting amounts from the document’s base currency to whatever is defined.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL ExchangeRate structure
'https://gobl.org/draft-0/currency/exchange-rate'
Constants included from Hashme
Instance Attribute Summary collapse
-
#amount ⇒ GOBL::Num::Amount
readonly
How much is 1.00 of this currency worth in the documents currency.
-
#currency ⇒ GOBL::Currency::Code
readonly
ISO currency code this rate represents.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#amount ⇒ GOBL::Num::Amount (readonly)
How much is 1.00 of this currency worth in the documents currency.
25 |
# File 'lib/gobl/currency/exchange_rate.rb', line 25 property :amount, GOBL::Num::Amount |
#currency ⇒ GOBL::Currency::Code (readonly)
ISO currency code this rate represents.
19 |
# File 'lib/gobl/currency/exchange_rate.rb', line 19 property :currency, GOBL::Currency::Code |