Class: Inttegro::Search::RelevanceSort
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::RelevanceSort
- Defined in:
- lib/inttegro/search/relevance_sort.rb
Overview
Typed representation of the relevance 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
-
#direction ⇒ Inttegro::Search::RelevanceSortDirection
readonly
Relevance is always sorted in descending order.
-
#field ⇒ Inttegro::Search::RelevanceSortField
readonly
Sort by search relevance.
Instance Attribute Details
#direction ⇒ Inttegro::Search::RelevanceSortDirection (readonly)
Relevance is always sorted in descending order.
Required in the API payload. Wire name: direction.
31 32 33 34 |
# File 'lib/inttegro/search/relevance_sort.rb', line 31 class RelevanceSort < T::Struct const :field, Inttegro::Search::RelevanceSortField const :direction, Inttegro::Search::RelevanceSortDirection end |
#field ⇒ Inttegro::Search::RelevanceSortField (readonly)
Sort by search relevance.
Required in the API payload. Wire name: field.
31 32 33 34 |
# File 'lib/inttegro/search/relevance_sort.rb', line 31 class RelevanceSort < T::Struct const :field, Inttegro::Search::RelevanceSortField const :direction, Inttegro::Search::RelevanceSortDirection end |