Class: Inttegro::Product::DimensionsDigital

Inherits:
T::Struct
  • Object
show all
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

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.

Returns:

  • (Integer, Float, nil)


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.

Returns:

  • (Integer, Float, nil)


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.

Returns:

  • (String, nil)


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