Class: GetStream::Generated::Models::ModerationPayloadResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ModerationPayloadResponse
- Defined in:
- lib/getstream_ruby/generated/models/moderation_payload_response.rb
Overview
Content payload for moderation
Instance Attribute Summary collapse
-
#audios ⇒ Array<String>
Audio URLs to moderate.
-
#custom ⇒ Object
Custom data for moderation.
-
#image_ids ⇒ Hash<String, String>
Caller-supplied content IDs per image key (from content_ids on /analyze).
-
#image_ordered_keys ⇒ Array<String>
Caller-supplied keys for images, index-aligned with images.
-
#images ⇒ Array<String>
Image URLs to moderate.
-
#text_ids ⇒ Hash<String, String>
Caller-supplied content IDs per text key (from content_ids on /analyze).
-
#text_ordered_keys ⇒ Array<String>
Caller-supplied keys for texts (e.g. "title", "description"), index-aligned with texts.
-
#texts ⇒ Array<String>
Text content to moderate.
-
#videos ⇒ Array<String>
Video URLs to moderate.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ModerationPayloadResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ModerationPayloadResponse
Initialize with attributes
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 41 def initialize(attributes = {}) super(attributes) @audios = attributes[:audios] || attributes['audios'] || nil @image_ordered_keys = attributes[:image_ordered_keys] || attributes['image_ordered_keys'] || nil @images = attributes[:images] || attributes['images'] || nil @text_ordered_keys = attributes[:text_ordered_keys] || attributes['text_ordered_keys'] || nil @texts = attributes[:texts] || attributes['texts'] || nil @videos = attributes[:videos] || attributes['videos'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @image_ids = attributes[:image_ids] || attributes['image_ids'] || nil @text_ids = attributes[:text_ids] || attributes['text_ids'] || nil end |
Instance Attribute Details
#audios ⇒ Array<String>
Returns Audio URLs to moderate.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 14 def audios @audios end |
#custom ⇒ Object
Returns Custom data for moderation.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 32 def custom @custom end |
#image_ids ⇒ Hash<String, String>
Returns Caller-supplied content IDs per image key (from content_ids on /analyze).
35 36 37 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 35 def image_ids @image_ids end |
#image_ordered_keys ⇒ Array<String>
Returns Caller-supplied keys for images, index-aligned with images.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 17 def image_ordered_keys @image_ordered_keys end |
#images ⇒ Array<String>
Returns Image URLs to moderate.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 20 def images @images end |
#text_ids ⇒ Hash<String, String>
Returns Caller-supplied content IDs per text key (from content_ids on /analyze).
38 39 40 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 38 def text_ids @text_ids end |
#text_ordered_keys ⇒ Array<String>
Returns Caller-supplied keys for texts (e.g. "title", "description"), index-aligned with texts.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 23 def text_ordered_keys @text_ordered_keys end |
#texts ⇒ Array<String>
Returns Text content to moderate.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 26 def texts @texts end |
#videos ⇒ Array<String>
Returns Video URLs to moderate.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 29 def videos @videos end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/getstream_ruby/generated/models/moderation_payload_response.rb', line 55 def self.json_field_mappings { audios: 'audios', image_ordered_keys: 'image_ordered_keys', images: 'images', text_ordered_keys: 'text_ordered_keys', texts: 'texts', videos: 'videos', custom: 'custom', image_ids: 'image_ids', text_ids: 'text_ids' } end |