Class: GetStream::Generated::Models::MessageOptions
- Defined in:
- lib/getstream_ruby/generated/models/message_options.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MessageOptions
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ MessageOptions
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/message_options.rb', line 17 def initialize(attributes = {}) super(attributes) @include_thread_participants = attributes[:include_thread_participants] || attributes['include_thread_participants'] || nil end |
Instance Attribute Details
#include_thread_participants ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/message_options.rb', line 14 def include_thread_participants @include_thread_participants 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/message_options.rb', line 23 def self.json_field_mappings { include_thread_participants: 'include_thread_participants' } end |