Class: GetStream::Generated::Models::MarkPrivacyConfig

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/mark_privacy_config.rb

Overview

How marks follow the marker's privacy settings.

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 = {}) ⇒ MarkPrivacyConfig

Initialize with attributes



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

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

Instance Attribute Details

#respect_read_receipts ⇒ Boolean

Returns When true, a mark by a user whose read receipts are off is kept for that user only: the author gets no event and does not see it in mark_groups or in the marks listing. Decided when the mark is written; changing the switch does not rewrite earlier marks. Defaults to false.

Returns:

  • (Boolean) —

    When true, a mark by a user whose read receipts are off is kept for that user only: the author gets no event and does not see it in mark_groups or in the marks listing. Decided when the mark is written; changing the switch does not rewrite earlier marks. Defaults to false



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

def respect_read_receipts
  @respect_read_receipts
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/mark_privacy_config.rb', line 23

def self.json_field_mappings
  {
    respect_read_receipts: 'respect_read_receipts'
  }
end