Class: GetStream::Generated::Models::ModerationCheckCompletedEvent
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ModerationCheckCompletedEvent
- Defined in:
- lib/getstream_ruby/generated/models/moderation_check_completed_event.rb
Overview
This event is sent when a moderation check is completed
Instance Attribute Summary collapse
- #created_at ⇒ DateTime
- #custom ⇒ Object
-
#entity_id ⇒ String
The ID of entity which was moderated.
-
#entity_type ⇒ String
The type of the entity which was moderated.
- #received_at ⇒ DateTime
-
#recommended_action ⇒ String
The recommended action.
-
#review_queue_item_id ⇒ String
The review queue item ID.
- #type ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ModerationCheckCompletedEvent
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ModerationCheckCompletedEvent
Initialize with attributes
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 38 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @entity_id = attributes[:entity_id] || attributes['entity_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @recommended_action = attributes[:recommended_action] || attributes['recommended_action'] @review_queue_item_id = attributes[:review_queue_item_id] || attributes['review_queue_item_id'] @custom = attributes[:custom] || attributes['custom'] @type = attributes[:type] || attributes['type'] || "moderation_check.completed" @received_at = attributes[:received_at] || attributes['received_at'] || nil end |
Instance Attribute Details
#created_at ⇒ DateTime
14 15 16 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 14 def created_at @created_at end |
#custom ⇒ Object
29 30 31 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 29 def custom @custom end |
#entity_id ⇒ String
Returns The ID of entity which was moderated.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 17 def entity_id @entity_id end |
#entity_type ⇒ String
Returns The type of the entity which was moderated.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 20 def entity_type @entity_type end |
#received_at ⇒ DateTime
35 36 37 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 35 def received_at @received_at end |
#recommended_action ⇒ String
Returns The recommended action.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 23 def recommended_action @recommended_action end |
#review_queue_item_id ⇒ String
Returns The review queue item ID.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 26 def review_queue_item_id @review_queue_item_id end |
#type ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 32 def type @type end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/getstream_ruby/generated/models/moderation_check_completed_event.rb', line 51 def self.json_field_mappings { created_at: 'created_at', entity_id: 'entity_id', entity_type: 'entity_type', recommended_action: 'recommended_action', review_queue_item_id: 'review_queue_item_id', custom: 'custom', type: 'type', received_at: 'received_at' } end |