Class: Inttegro::Search::ChronologicalSort

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/search/chronological_sort.rb

Overview

Typed representation of the chronological sort 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

#direction ⇒ Inttegro::Search::ChronologicalSortDirection (readonly)

Value of the direction field in the Inttegro API payload.

Required in the API payload. Wire name: direction.



31
32
33
34
# File 'lib/inttegro/search/chronological_sort.rb', line 31

class ChronologicalSort < T::Struct
  const :field, Inttegro::Search::ChronologicalSortField
  const :direction, Inttegro::Search::ChronologicalSortDirection
end

#field ⇒ Inttegro::Search::ChronologicalSortField (readonly)

published_at is supported only by product search.

Required in the API payload. Wire name: field.



31
32
33
34
# File 'lib/inttegro/search/chronological_sort.rb', line 31

class ChronologicalSort < T::Struct
  const :field, Inttegro::Search::ChronologicalSortField
  const :direction, Inttegro::Search::ChronologicalSortDirection
end