Class: GetStream::Generated::Models::ReviewQueueItemResponse
- Defined in:
- lib/getstream_ruby/generated/models/review_queue_item_response.rb
Instance Attribute Summary collapse
-
#actions ⇒ Array<ActionLogResponse>
Moderation actions taken.
- #activity ⇒ EnrichedActivity
-
#ai_text_severity ⇒ String
AI-determined text severity.
- #assigned_to ⇒ UserResponse
-
#bans ⇒ Array<Ban>
Associated ban records.
- #call ⇒ CallResponse
-
#completed_at ⇒ DateTime
When the review was completed.
- #config_key ⇒ String
-
#created_at ⇒ DateTime
When the item was created.
- #entity_creator ⇒ EntityCreatorResponse
-
#entity_creator_id ⇒ String
ID of who created the entity.
-
#entity_id ⇒ String
ID of the entity being reviewed.
-
#entity_type ⇒ String
Type of entity being reviewed.
- #feeds_v2_activity ⇒ EnrichedActivity
- #feeds_v2_reaction ⇒ Reaction
- #feeds_v3_activity ⇒ ActivityResponse
- #feeds_v3_comment ⇒ CommentResponse
-
#flags ⇒ Array<ModerationFlagResponse>
Associated flag records.
- #flags_count ⇒ Integer
-
#id ⇒ String
Unique identifier of the review queue item.
-
#languages ⇒ Array<String>
Detected languages in the content.
- #latest_moderator_action ⇒ String
- #message ⇒ MessageResponse
- #moderation_payload ⇒ ModerationPayload
- #reaction ⇒ Reaction
-
#recommended_action ⇒ String
Suggested moderation action.
-
#reviewed_at ⇒ DateTime
When the item was reviewed.
-
#reviewed_by ⇒ String
ID of the moderator who reviewed the item.
-
#severity ⇒ Integer
Severity level of the content.
-
#status ⇒ String
Current status of the review.
-
#teams ⇒ Array<String>
Teams associated with this item.
-
#updated_at ⇒ DateTime
When the item was last updated.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ReviewQueueItemResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ReviewQueueItemResponse
Initialize with attributes
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 110 def initialize(attributes = {}) super(attributes) @ai_text_severity = attributes[:ai_text_severity] || attributes['ai_text_severity'] @created_at = attributes[:created_at] || attributes['created_at'] @entity_id = attributes[:entity_id] || attributes['entity_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @flags_count = attributes[:flags_count] || attributes['flags_count'] @id = attributes[:id] || attributes['id'] @latest_moderator_action = attributes[:latest_moderator_action] || attributes['latest_moderator_action'] @recommended_action = attributes[:recommended_action] || attributes['recommended_action'] @reviewed_by = attributes[:reviewed_by] || attributes['reviewed_by'] @severity = attributes[:severity] || attributes['severity'] @status = attributes[:status] || attributes['status'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @actions = attributes[:actions] || attributes['actions'] @bans = attributes[:bans] || attributes['bans'] @flags = attributes[:flags] || attributes['flags'] @languages = attributes[:languages] || attributes['languages'] @completed_at = attributes[:completed_at] || attributes['completed_at'] || nil @config_key = attributes[:config_key] || attributes['config_key'] || nil @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil @reviewed_at = attributes[:reviewed_at] || attributes['reviewed_at'] || nil @teams = attributes[:teams] || attributes['teams'] || nil @activity = attributes[:activity] || attributes['activity'] || nil @assigned_to = attributes[:assigned_to] || attributes['assigned_to'] || nil @call = attributes[:call] || attributes['call'] || nil @entity_creator = attributes[:entity_creator] || attributes['entity_creator'] || nil @feeds_v2_activity = attributes[:feeds_v2_activity] || attributes['feeds_v2_activity'] || nil @feeds_v2_reaction = attributes[:feeds_v2_reaction] || attributes['feeds_v2_reaction'] || nil @feeds_v3_activity = attributes[:feeds_v3_activity] || attributes['feeds_v3_activity'] || nil @feeds_v3_comment = attributes[:feeds_v3_comment] || attributes['feeds_v3_comment'] || nil = attributes[:message] || attributes['message'] || nil @moderation_payload = attributes[:moderation_payload] || attributes['moderation_payload'] || nil @reaction = attributes[:reaction] || attributes['reaction'] || nil end |
Instance Attribute Details
#actions ⇒ Array<ActionLogResponse>
Returns Moderation actions taken.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 50 def actions @actions end |
#activity ⇒ EnrichedActivity
77 78 79 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 77 def activity @activity end |
#ai_text_severity ⇒ String
Returns AI-determined text severity.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 14 def ai_text_severity @ai_text_severity end |
#assigned_to ⇒ UserResponse
80 81 82 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 80 def assigned_to @assigned_to end |
#bans ⇒ Array<Ban>
Returns Associated ban records.
53 54 55 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 53 def bans @bans end |
#call ⇒ CallResponse
83 84 85 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 83 def call @call end |
#completed_at ⇒ DateTime
Returns When the review was completed.
62 63 64 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 62 def completed_at @completed_at end |
#config_key ⇒ String
65 66 67 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 65 def config_key @config_key end |
#created_at ⇒ DateTime
Returns When the item was created.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 17 def created_at @created_at end |
#entity_creator ⇒ EntityCreatorResponse
86 87 88 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 86 def entity_creator @entity_creator end |
#entity_creator_id ⇒ String
Returns ID of who created the entity.
68 69 70 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 68 def entity_creator_id @entity_creator_id end |
#entity_id ⇒ String
Returns ID of the entity being reviewed.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 20 def entity_id @entity_id end |
#entity_type ⇒ String
Returns Type of entity being reviewed.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 23 def entity_type @entity_type end |
#feeds_v2_activity ⇒ EnrichedActivity
89 90 91 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 89 def feeds_v2_activity @feeds_v2_activity end |
#feeds_v2_reaction ⇒ Reaction
92 93 94 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 92 def feeds_v2_reaction @feeds_v2_reaction end |
#feeds_v3_activity ⇒ ActivityResponse
95 96 97 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 95 def feeds_v3_activity @feeds_v3_activity end |
#feeds_v3_comment ⇒ CommentResponse
98 99 100 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 98 def feeds_v3_comment @feeds_v3_comment end |
#flags ⇒ Array<ModerationFlagResponse>
Returns Associated flag records.
56 57 58 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 56 def flags @flags end |
#flags_count ⇒ Integer
26 27 28 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 26 def flags_count @flags_count end |
#id ⇒ String
Returns Unique identifier of the review queue item.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 29 def id @id end |
#languages ⇒ Array<String>
Returns Detected languages in the content.
59 60 61 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 59 def languages @languages end |
#latest_moderator_action ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 32 def latest_moderator_action @latest_moderator_action end |
#message ⇒ MessageResponse
101 102 103 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 101 def end |
#moderation_payload ⇒ ModerationPayload
104 105 106 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 104 def moderation_payload @moderation_payload end |
#reaction ⇒ Reaction
107 108 109 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 107 def reaction @reaction end |
#recommended_action ⇒ String
Returns Suggested moderation action.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 35 def recommended_action @recommended_action end |
#reviewed_at ⇒ DateTime
Returns When the item was reviewed.
71 72 73 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 71 def reviewed_at @reviewed_at end |
#reviewed_by ⇒ String
Returns ID of the moderator who reviewed the item.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 38 def reviewed_by @reviewed_by end |
#severity ⇒ Integer
Returns Severity level of the content.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 41 def severity @severity end |
#status ⇒ String
Returns Current status of the review.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 44 def status @status end |
#teams ⇒ Array<String>
Returns Teams associated with this item.
74 75 76 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 74 def teams @teams end |
#updated_at ⇒ DateTime
Returns When the item was last updated.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 47 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/getstream_ruby/generated/models/review_queue_item_response.rb', line 147 def self.json_field_mappings { ai_text_severity: 'ai_text_severity', created_at: 'created_at', entity_id: 'entity_id', entity_type: 'entity_type', flags_count: 'flags_count', id: 'id', latest_moderator_action: 'latest_moderator_action', recommended_action: 'recommended_action', reviewed_by: 'reviewed_by', severity: 'severity', status: 'status', updated_at: 'updated_at', actions: 'actions', bans: 'bans', flags: 'flags', languages: 'languages', completed_at: 'completed_at', config_key: 'config_key', entity_creator_id: 'entity_creator_id', reviewed_at: 'reviewed_at', teams: 'teams', activity: 'activity', assigned_to: 'assigned_to', call: 'call', entity_creator: 'entity_creator', feeds_v2_activity: 'feeds_v2_activity', feeds_v2_reaction: 'feeds_v2_reaction', feeds_v3_activity: 'feeds_v3_activity', feeds_v3_comment: 'feeds_v3_comment', message: 'message', moderation_payload: 'moderation_payload', reaction: 'reaction' } end |