Class: Cadenya::Models::AttributeFilter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::AttributeFilter
- Defined in:
- lib/cadenya/models/attribute_filter.rb
Defined Under Namespace
Modules: Attribute
Instance Attribute Summary collapse
- #attribute ⇒ Symbol, Cadenya::Models::AttributeFilter::Attribute
-
#matcher ⇒ Cadenya::Models::StringMatcher?
String matching operations.
Instance Method Summary collapse
-
#initialize(attribute:, matcher: nil) ⇒ Object
constructor
Single attribute filter.
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(attribute:, matcher: nil) ⇒ Object
Single attribute filter
|
|
# File 'lib/cadenya/models/attribute_filter.rb', line 17
|
Instance Attribute Details
#attribute ⇒ Symbol, Cadenya::Models::AttributeFilter::Attribute
9 |
# File 'lib/cadenya/models/attribute_filter.rb', line 9 required :attribute, enum: -> { Cadenya::AttributeFilter::Attribute } |
#matcher ⇒ Cadenya::Models::StringMatcher?
String matching operations
15 |
# File 'lib/cadenya/models/attribute_filter.rb', line 15 optional :matcher, -> { Cadenya::StringMatcher } |