Class: Inttegro::Product::DimensionsDigital
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Product::DimensionsDigital
- Defined in:
- lib/inttegro/product/dimensions_digital.rb
Overview
Typed representation of the dimensions digital 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
-
#bytes ⇒ Integer, ...
readonly
Value of the
bytesfield in the Inttegro API payload. -
#size ⇒ Integer, ...
readonly
Value of the
sizefield in the Inttegro API payload. -
#size_unit ⇒ String?
readonly
Value of the
size_unitfield in the Inttegro API payload.
Instance Attribute Details
#bytes ⇒ Integer, ... (readonly)
Value of the bytes field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: bytes.
35 36 37 38 39 |
# File 'lib/inttegro/product/dimensions_digital.rb', line 35 class DimensionsDigital < T::Struct const :bytes, T.nilable(T.any(Integer, Float)), default: nil const :size_unit, T.nilable(String), default: nil const :size, T.nilable(T.any(Integer, Float)), default: nil end |
#size ⇒ Integer, ... (readonly)
Value of the size field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: size.
35 36 37 38 39 |
# File 'lib/inttegro/product/dimensions_digital.rb', line 35 class DimensionsDigital < T::Struct const :bytes, T.nilable(T.any(Integer, Float)), default: nil const :size_unit, T.nilable(String), default: nil const :size, T.nilable(T.any(Integer, Float)), default: nil end |
#size_unit ⇒ String? (readonly)
Value of the size_unit field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: size_unit.
35 36 37 38 39 |
# File 'lib/inttegro/product/dimensions_digital.rb', line 35 class DimensionsDigital < T::Struct const :bytes, T.nilable(T.any(Integer, Float)), default: nil const :size_unit, T.nilable(String), default: nil const :size, T.nilable(T.any(Integer, Float)), default: nil end |