Class: GetStream::Generated::Models::PredefinedFilterResponse

Inherits:
BaseModel
  • Object
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(attributes = {}) ⇒ PredefinedFilterResponse

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_atDateTime

Returns:

  • (DateTime)


14
15
16
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 14

def created_at
  @created_at
end

#descriptionString

Returns:

  • (String)


29
30
31
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 29

def description
  @description
end

#filterObject

Returns:

  • (Object)


26
27
28
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 26

def filter
  @filter
end

#nameString

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 17

def name
  @name
end

#operationString

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 20

def operation
  @operation
end

#performancePerformanceAnalysisResponse



38
39
40
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 38

def performance
  @performance
end

#query_idInteger

Returns:

  • (Integer)


32
33
34
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 32

def query_id
  @query_id
end

#sortArray<SortParam>

Returns:



35
36
37
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 35

def sort
  @sort
end

#statsPredefinedFilterStatsResponse



41
42
43
# File 'lib/getstream_ruby/generated/models/predefined_filter_response.rb', line 41

def stats
  @stats
end

#updated_atDateTime

Returns:

  • (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_mappingsObject

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