Class: Inttegro::Search::Filter
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::Filter
- Defined in:
- lib/inttegro/search/filter.rb
Overview
Typed representation of the filter 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
-
#field ⇒ String
readonly
Unqualified route-local field name documented by the selected endpoint.
-
#operator ⇒ Inttegro::Search::FilterOperator
readonly
eqrequires exactly one value;inmatches any supplied value. -
#values ⇒ Array<String>
readonly
Value of the
valuesfield in the Inttegro API payload.
Instance Attribute Details
#field ⇒ String (readonly)
Unqualified route-local field name documented by the selected endpoint.
Required in the API payload. Wire name: field.
36 37 38 39 40 |
# File 'lib/inttegro/search/filter.rb', line 36 class Filter < T::Struct const :field, String const :operator, Inttegro::Search::FilterOperator const :values, T::Array[String] end |
#operator ⇒ Inttegro::Search::FilterOperator (readonly)
eq requires exactly one value; in matches any supplied value.
Required in the API payload. Wire name: operator.
36 37 38 39 40 |
# File 'lib/inttegro/search/filter.rb', line 36 class Filter < T::Struct const :field, String const :operator, Inttegro::Search::FilterOperator const :values, T::Array[String] end |
#values ⇒ Array<String> (readonly)
Value of the values field in the Inttegro API payload.
Required in the API payload. Wire name: values.
36 37 38 39 40 |
# File 'lib/inttegro/search/filter.rb', line 36 class Filter < T::Struct const :field, String const :operator, Inttegro::Search::FilterOperator const :values, T::Array[String] end |