Class: Inttegro::Product::DimensionsCustom

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/product/dimensions_custom.rb

Overview

Typed representation of the dimensions custom 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

#details ⇒ Hash{String => String}? (readonly)

Named string measurements or descriptors for a product dimension.

Optional in the API payload; omitted values default to nil. Wire name: details.

Returns:

  • (Hash{String => String}, nil)


35
36
37
38
39
# File 'lib/inttegro/product/dimensions_custom.rb', line 35

class DimensionsCustom < T::Struct
  const :size_unit, T.nilable(String), default: nil
  const :size, T.nilable(T.any(Integer, Float)), default: nil
  const :details, T.nilable(T::Hash[String, String]), 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_custom.rb', line 35

class DimensionsCustom < T::Struct
  const :size_unit, T.nilable(String), default: nil
  const :size, T.nilable(T.any(Integer, Float)), default: nil
  const :details, T.nilable(T::Hash[String, String]), 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_custom.rb', line 35

class DimensionsCustom < T::Struct
  const :size_unit, T.nilable(String), default: nil
  const :size, T.nilable(T.any(Integer, Float)), default: nil
  const :details, T.nilable(T::Hash[String, String]), default: nil
end