Class: GetStream::Generated::Models::MarkPrivacyConfig
- Defined in:
- lib/getstream_ruby/generated/models/mark_privacy_config.rb
Overview
How marks follow the marker's privacy settings.
Instance Attribute Summary collapse
-
#respect_read_receipts ⇒ 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.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MarkPrivacyConfig
constructor
Initialize with attributes.
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.
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 |