Reference documentation and code samples for the Universal Ledger V1 API class Google::Cloud::UniversalLedger::V1::AmountValue.
Represents a denominated amount in a currency.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#amount_value
def amount_value() -> ::Integer
Returns
- (::Integer) — Required. The number of minor units of the currency.
#amount_value=
def amount_value=(value) -> ::Integer
Parameter
- value (::Integer) — Required. The number of minor units of the currency.
Returns
- (::Integer) — Required. The number of minor units of the currency.
#currency
def currency() -> ::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue
Returns
- (::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue) — Required. The currency of the amount.
#currency=
def currency=(value) -> ::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue
Parameter
- value (::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue) — Required. The currency of the amount.
Returns
- (::Google::Cloud::UniversalLedger::V1::QualifiedCurrencyValue) — Required. The currency of the amount.