Class: Inttegro::Balance::Value
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Balance::Value
- Defined in:
- lib/inttegro/balance/value.rb
Overview
Typed representation of the value object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#amount ⇒ Integer
readonly
Amount in the currency's smallest unit.
Instance Attribute Details
#amount ⇒ Integer (readonly)
Amount in the currency's smallest unit
Required in the API payload. Wire name: amount.
23 24 25 |
# File 'lib/inttegro/balance/value.rb', line 23 class Value < T::Struct const :amount, Integer end |