Class: Trycourier::Models::FilterConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Trycourier::Models::FilterConfig
- Defined in:
- lib/trycourier/models/filter_config.rb
Instance Attribute Summary collapse
-
#filters ⇒ Array<Trycourier::Models::FilterConfig>?
Nested filter rules to combine with AND/OR.
-
#operator ⇒ String
The operator for this filter.
-
#path ⇒ String?
The attribute path from the user profile to filter on.
-
#value ⇒ String?
The value to compare against.
Instance Method Summary collapse
-
#initialize(operator:, filters: nil, path: nil, value: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see FilterConfig for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(operator:, filters: nil, path: nil, value: nil) ⇒ Object
Some parameter documentations has been truncated, see Trycourier::Models::FilterConfig for more details.
A filter rule that can be either a single condition (with path/value) or a nested group (with filters array). Use comparison operators (EQ, GT, etc.) for single conditions, and logical operators (AND, OR) for nested groups.
|
|
# File 'lib/trycourier/models/filter_config.rb', line 35
|
Instance Attribute Details
#filters ⇒ Array<Trycourier::Models::FilterConfig>?
Nested filter rules to combine with AND/OR. Required for nested filter groups, not used for single filter conditions.
19 |
# File 'lib/trycourier/models/filter_config.rb', line 19 optional :filters, -> { Trycourier::Internal::Type::ArrayOf[Trycourier::FilterConfig] } |
#operator ⇒ String
The operator for this filter. Use comparison operators (EQ, GT, LT, GTE, LTE, NEQ, EXISTS, INCLUDES, STARTS_WITH, ENDS_WITH, IS_BEFORE, IS_AFTER, OMIT) for single conditions, or logical operators (AND, OR) for nested filter groups.
12 |
# File 'lib/trycourier/models/filter_config.rb', line 12 required :operator, String |
#path ⇒ String?
The attribute path from the user profile to filter on. Required for single filter conditions, not used for nested filter groups.
26 |
# File 'lib/trycourier/models/filter_config.rb', line 26 optional :path, String |
#value ⇒ String?
The value to compare against. Required for single filter conditions, not used for nested filter groups.
33 |
# File 'lib/trycourier/models/filter_config.rb', line 33 optional :value, String |