Class: GetStream::Generated::Models::MessageOptions

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

Returns:

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

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