Class: GetStream::Generated::Models::MarkReviewedRequestPayload
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::MarkReviewedRequestPayload
- Defined in:
- lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb
Overview
Configuration for mark reviewed action
Instance Attribute Summary collapse
-
#content_to_mark_as_reviewed_limit ⇒ Integer
Maximum content items to mark as reviewed.
-
#decision_reason ⇒ String
Reason for the appeal decision.
-
#disable_marking_content_as_reviewed ⇒ Boolean
Skip marking content as reviewed.
-
#reason ⇒ String
Internal moderator note, stored on the action log and returned by QueryModerationLogs.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MarkReviewedRequestPayload
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ MarkReviewedRequestPayload
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb', line 26 def initialize(attributes = {}) super(attributes) @content_to_mark_as_reviewed_limit = attributes.fetch(:content_to_mark_as_reviewed_limit) { attributes.fetch('content_to_mark_as_reviewed_limit', nil) } @decision_reason = attributes.fetch(:decision_reason) { attributes.fetch('decision_reason', nil) } @disable_marking_content_as_reviewed = attributes.fetch(:disable_marking_content_as_reviewed) { attributes.fetch('disable_marking_content_as_reviewed', nil) } @reason = attributes.fetch(:reason) { attributes.fetch('reason', nil) } end |
Instance Attribute Details
#content_to_mark_as_reviewed_limit ⇒ Integer
Returns Maximum content items to mark as reviewed.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb', line 14 def content_to_mark_as_reviewed_limit @content_to_mark_as_reviewed_limit end |
#decision_reason ⇒ String
Returns Reason for the appeal decision.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb', line 17 def decision_reason @decision_reason end |
#disable_marking_content_as_reviewed ⇒ Boolean
Returns Skip marking content as reviewed.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb', line 20 def disable_marking_content_as_reviewed @disable_marking_content_as_reviewed end |
#reason ⇒ String
Returns Internal moderator note, stored on the action log and returned by QueryModerationLogs. Not shown to the appealing user; use decision_reason for that.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb', line 23 def reason @reason end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/mark_reviewed_request_payload.rb', line 35 def self.json_field_mappings { content_to_mark_as_reviewed_limit: 'content_to_mark_as_reviewed_limit', decision_reason: 'decision_reason', disable_marking_content_as_reviewed: 'disable_marking_content_as_reviewed', reason: 'reason' } end |