Class: GetStream::Generated::Models::PredefinedFilterResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::PredefinedFilterResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/predefined_filter_response.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
Initialize with attributes
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 44
def initialize(attributes = {})
super(attributes)
@created_at = attributes[:created_at] || attributes['created_at']
@name = attributes[:name] || attributes['name']
@operation = attributes[:operation] || attributes['operation']
@updated_at = attributes[:updated_at] || attributes['updated_at']
@filter = attributes[:filter] || attributes['filter']
@description = attributes[:description] || attributes['description'] || nil
@query_id = attributes[:query_id] || attributes['query_id'] || nil
@sort = attributes[:sort] || attributes['sort'] || nil
@performance = attributes[:performance] || attributes['performance'] || nil
@stats = attributes[:stats] || attributes['stats'] || nil
end
|
Instance Attribute Details
#created_at ⇒ DateTime
14
15
16
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 14
def created_at
@created_at
end
|
#description ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 29
def description
@description
end
|
#filter ⇒ Object
26
27
28
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 26
def filter
@filter
end
|
#name ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 17
def name
@name
end
|
#operation ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 20
def operation
@operation
end
|
38
39
40
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 38
def performance
@performance
end
|
#query_id ⇒ Integer
32
33
34
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 32
def query_id
@query_id
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 35
def sort
@sort
end
|
41
42
43
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 41
def stats
@stats
end
|
#updated_at ⇒ DateTime
23
24
25
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 23
def updated_at
@updated_at
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 59
def self.json_field_mappings
{
created_at: 'created_at',
name: 'name',
operation: 'operation',
updated_at: 'updated_at',
filter: 'filter',
description: 'description',
query_id: 'query_id',
sort: 'sort',
performance: 'performance',
stats: 'stats'
}
end
|