Class: GetStream::Generated::Models::SearchAllWarning

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/search_all_warning.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 = {}) ⇒ SearchAllWarning

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @code = attributes.fetch(:code) { attributes.fetch('code', nil) }
end

Instance Attribute Details

#code ⇒ String

Returns Warning code. cursor_rejected: the cursor supplied for this section failed to decode, so the section restarted from page 1.

Returns:

  • (String) —

    Warning code. cursor_rejected: the cursor supplied for this section failed to decode, so the section restarted from page 1



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

def code
  @code
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



23
24
25
26
27
# File 'lib/getstream_ruby/generated/models/search_all_warning.rb', line 23

def self.json_field_mappings
  {
    code: 'code'
  }
end