Class: Inttegro::PurchaseIntent::VariantAxis
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::VariantAxis
- 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
-
#key ⇒ String
readonly
Value of the
keyfield in the Inttegro API payload. -
#label ⇒ String
readonly
Value of the
labelfield in the Inttegro API payload. -
#position ⇒ Integer
readonly
Value of the
positionfield in the Inttegro API payload.
Instance Attribute Details
#key ⇒ String (readonly)
Value of the key field in the Inttegro API payload.
Required in the API payload. Wire name: key.
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.
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.
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 |