Class: GetStream::Generated::Models::SearchAllWarning
- Defined in:
- lib/getstream_ruby/generated/models/search_all_warning.rb
Instance Attribute Summary collapse
-
#code ⇒ String
Warning code.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SearchAllWarning
constructor
Initialize with attributes.
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.
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 |