Class: GetStream::Generated::Models::UpdatePredefinedFilterRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::UpdatePredefinedFilterRequest
- Defined in:
- lib/getstream_ruby/generated/models/update_predefined_filter_request.rb
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the predefined filter.
-
#filter ⇒ Object
Filter to apply to the query.
-
#operation ⇒ String
The operation this filter is for (e.g., QueryChannels).
- #sort ⇒ Array<Object>
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpdatePredefinedFilterRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpdatePredefinedFilterRequest
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/update_predefined_filter_request.rb', line 26 def initialize(attributes = {}) super(attributes) @operation = attributes[:operation] || attributes['operation'] @filter = attributes[:filter] || attributes['filter'] @description = attributes[:description] || attributes['description'] || nil @sort = attributes[:sort] || attributes['sort'] || nil end |
Instance Attribute Details
#description ⇒ String
Returns The description of the predefined filter.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/update_predefined_filter_request.rb', line 20 def description @description end |
#filter ⇒ Object
Returns Filter to apply to the query.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/update_predefined_filter_request.rb', line 17 def filter @filter end |
#operation ⇒ String
Returns The operation this filter is for (e.g., QueryChannels).
14 15 16 |
# File 'lib/getstream_ruby/generated/models/update_predefined_filter_request.rb', line 14 def operation @operation end |
#sort ⇒ Array<Object>
23 24 25 |
# File 'lib/getstream_ruby/generated/models/update_predefined_filter_request.rb', line 23 def sort @sort end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/update_predefined_filter_request.rb', line 35 def self.json_field_mappings { operation: 'operation', filter: 'filter', description: 'description', sort: 'sort' } end |