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



20
21
22
23
24
# File 'lib/getstream_ruby/generated/models/message_options.rb', line 20

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

Instance Attribute Details

#include_thread_participants ⇒ Boolean

Returns:

  • (Boolean)


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

def include_thread_participants
  @include_thread_participants
end

#member_custom_include ⇒ Array<String>

Returns:

  • (Array<String>)


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

def member_custom_include
  @member_custom_include
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/message_options.rb', line 27

def self.json_field_mappings
  {
    include_thread_participants: 'include_thread_participants',
    member_custom_include: 'member_custom_include'
  }
end