Class: Inttegro::Product::Attribute
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Product::Attribute
- 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
-
#name ⇒ String
readonly
Value of the
namefield in the Inttegro API payload. -
#value ⇒ String
readonly
Value of the
valuefield in the Inttegro API payload.
Instance Attribute Details
#name ⇒ String (readonly)
Value of the name field in the Inttegro API payload.
Required in the API payload. Wire name: name.
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.
29 30 31 32 |
# File 'lib/inttegro/product/attribute.rb', line 29 class Attribute < T::Struct const :name, String const :value, String end |