Class: GetStream::Generated::Models::ModerationV2Response
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ModerationV2Response
show all
- Defined in:
- lib/getstream_ruby/generated/models/moderation_v2_response.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
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 35
def initialize(attributes = {})
super(attributes)
@action = attributes[:action] || attributes['action']
@original_text = attributes[:original_text] || attributes['original_text']
@blocklist_matched = attributes[:blocklist_matched] || attributes['blocklist_matched'] || nil
@platform_circumvented = attributes[:platform_circumvented] || attributes['platform_circumvented'] || nil
@semantic_filter_matched = attributes[:semantic_filter_matched] || attributes['semantic_filter_matched'] || nil
@image_harms = attributes[:image_harms] || attributes['image_harms'] || nil
@text_harms = attributes[:text_harms] || attributes['text_harms'] || nil
end
|
Instance Attribute Details
#action ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 14
def action
@action
end
|
#blocklist_matched ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 20
def blocklist_matched
@blocklist_matched
end
|
#image_harms ⇒ Array<String>
29
30
31
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 29
def image_harms
@image_harms
end
|
#original_text ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 17
def original_text
@original_text
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 23
def platform_circumvented
@platform_circumvented
end
|
#semantic_filter_matched ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 26
def semantic_filter_matched
@semantic_filter_matched
end
|
#text_harms ⇒ Array<String>
32
33
34
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 32
def text_harms
@text_harms
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/getstream_ruby/generated/models/moderation_v2_response.rb', line 47
def self.json_field_mappings
{
action: 'action',
original_text: 'original_text',
blocklist_matched: 'blocklist_matched',
platform_circumvented: 'platform_circumvented',
semantic_filter_matched: 'semantic_filter_matched',
image_harms: 'image_harms',
text_harms: 'text_harms'
}
end
|