Class: GOBL::Currency::Amount

Inherits:
Object show all
Defined in:
lib/generated/gobl/currency/amount.rb

Overview

An Amount represents a monetary value in a specific currency.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Amount structure

'https://gobl.org/draft-0/currency/amount'

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#currencyGOBL::Currency::Code (readonly)

Code defines the currency for this amount.



23
# File 'lib/generated/gobl/currency/amount.rb', line 23

property :currency, GOBL::Currency::Code

#labelString (readonly)

Label allows for additional information to be added to the currency Amount that may be useful.

Returns:

  • (String)


18
# File 'lib/generated/gobl/currency/amount.rb', line 18

property :label, String

#valueGOBL::Num::Amount (readonly)

Value is the amount in the currency.

Returns:



29
# File 'lib/generated/gobl/currency/amount.rb', line 29

property :value, GOBL::Num::Amount