Class: GetStream::Generated::Models::ModerationPayload
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ModerationPayload
show all
- Defined in:
- lib/getstream_ruby/generated/models/moderation_payload.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
Initialize with attributes
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.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>
14
15
16
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 14
def audios
@audios
end
|
#custom ⇒ Object
32
33
34
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 32
def custom
@custom
end
|
#image_ids ⇒ Hash<String, String>
35
36
37
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 35
def image_ids
@image_ids
end
|
#image_ordered_keys ⇒ Array<String>
17
18
19
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 17
def image_ordered_keys
@image_ordered_keys
end
|
#images ⇒ Array<String>
20
21
22
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 20
def images
@images
end
|
#text_ids ⇒ Hash<String, String>
38
39
40
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 38
def text_ids
@text_ids
end
|
#text_ordered_keys ⇒ Array<String>
23
24
25
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 23
def text_ordered_keys
@text_ordered_keys
end
|
#texts ⇒ Array<String>
26
27
28
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.rb', line 26
def texts
@texts
end
|
#videos ⇒ Array<String>
29
30
31
|
# File 'lib/getstream_ruby/generated/models/moderation_payload.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.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
|