Class: Inttegro::Product::Attribute

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

Overview

Typed representation of the attribute 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)

Value of the name field in the Inttegro API payload.

Required in the API payload. Wire name: name.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/product/attribute.rb', line 29

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

#value ⇒ String (readonly)

Value of the value field in the Inttegro API payload.

Required in the API payload. Wire name: value.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/product/attribute.rb', line 29

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