Class: Inttegro::PurchaseIntent::ProductAttributesItem

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

Overview

Typed representation of the product attributes item 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

#name ⇒ String (readonly)

Attribute name

Required in the API payload. Wire name: name.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/purchase_intent/product_attributes_item.rb', line 29

class ProductAttributesItem < T::Struct
  const :name, String
  const :value, String
end

#value ⇒ String (readonly)

Attribute value

Required in the API payload. Wire name: value.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/purchase_intent/product_attributes_item.rb', line 29

class ProductAttributesItem < T::Struct
  const :name, String
  const :value, String
end