Class: Inttegro::PurchaseIntent::VariantAxis

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/purchase_intent/variant_axis.rb

Overview

Typed representation of the variant axis 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

#key ⇒ String (readonly)

Value of the key field in the Inttegro API payload.

Required in the API payload. Wire name: key.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/purchase_intent/variant_axis.rb', line 35

class VariantAxis < T::Struct
  const :key, String
  const :label, String
  const :position, Integer
end

#label ⇒ String (readonly)

Value of the label field in the Inttegro API payload.

Required in the API payload. Wire name: label.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/purchase_intent/variant_axis.rb', line 35

class VariantAxis < T::Struct
  const :key, String
  const :label, String
  const :position, Integer
end

#position ⇒ Integer (readonly)

Value of the position field in the Inttegro API payload.

Required in the API payload. Wire name: position.

Returns:

  • (Integer)


35
36
37
38
39
# File 'lib/inttegro/purchase_intent/variant_axis.rb', line 35

class VariantAxis < T::Struct
  const :key, String
  const :label, String
  const :position, Integer
end