Class: GetStream::Generated::Models::SearchAllSectionError
- Defined in:
- lib/getstream_ruby/generated/models/search_all_section_error.rb
Instance Attribute Summary collapse
-
#code ⇒ String
Error code.
-
#message ⇒ String
Human-readable description of the failure.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SearchAllSectionError
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SearchAllSectionError
Initialize with attributes
20 21 22 23 24 |
# File 'lib/getstream_ruby/generated/models/search_all_section_error.rb', line 20 def initialize(attributes = {}) super(attributes) @code = attributes.fetch(:code) { attributes.fetch('code', nil) } @message = attributes.fetch(:message) { attributes.fetch('message', nil) } end |
Instance Attribute Details
#code ⇒ String
Returns Error code. backend_timeout and backend_unavailable are retryable; unsupported (the app's configuration cannot serve this section) and internal_error are not.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/search_all_section_error.rb', line 14 def code @code end |
#message ⇒ String
Returns Human-readable description of the failure.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/search_all_section_error.rb', line 17 def @message end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/search_all_section_error.rb', line 27 def self.json_field_mappings { code: 'code', message: 'message' } end |