Class: Inttegro::Product::SearchResponseSearchResourceTotalsItem

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

Overview

Typed representation of the search response search resource totals 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

#relation ⇒ Inttegro::Product::SearchResponseSearchResourceTotalsItemRelation (readonly)

Value of the relation field in the Inttegro API payload.

Required in the API payload. Wire name: relation.



38
39
40
41
42
# File 'lib/inttegro/product/search_response_search_resource_totals_item.rb', line 38

class SearchResponseSearchResourceTotalsItem < T::Struct
  const :resource_type, Inttegro::Product::SearchResponseSearchResourceTotalsItemResourceType
  const :value, Integer
  const :relation, Inttegro::Product::SearchResponseSearchResourceTotalsItemRelation
end

#resource_type ⇒ Inttegro::Product::SearchResponseSearchResourceTotalsItemResourceType (readonly)

Value of the resource_type field in the Inttegro API payload.

Required in the API payload. Wire name: resource_type.



38
39
40
41
42
# File 'lib/inttegro/product/search_response_search_resource_totals_item.rb', line 38

class SearchResponseSearchResourceTotalsItem < T::Struct
  const :resource_type, Inttegro::Product::SearchResponseSearchResourceTotalsItemResourceType
  const :value, Integer
  const :relation, Inttegro::Product::SearchResponseSearchResourceTotalsItemRelation
end

#value ⇒ Integer (readonly)

Value of the value field in the Inttegro API payload.

Required in the API payload. Wire name: value.

Returns:

  • (Integer)


38
39
40
41
42
# File 'lib/inttegro/product/search_response_search_resource_totals_item.rb', line 38

class SearchResponseSearchResourceTotalsItem < T::Struct
  const :resource_type, Inttegro::Product::SearchResponseSearchResourceTotalsItemResourceType
  const :value, Integer
  const :relation, Inttegro::Product::SearchResponseSearchResourceTotalsItemRelation
end