Class: GetStream::Generated::Models::AutomodDetailsResponse
- Defined in:
- lib/getstream_ruby/generated/models/automod_details_response.rb
Instance Attribute Summary collapse
- #action ⇒ String
- #image_labels ⇒ Array<String>
- #message_details ⇒ FlagMessageDetailsResponse
- #original_message_type ⇒ String
-
#result ⇒ MessageModerationResult
Result of the message moderation.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AutomodDetailsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AutomodDetailsResponse
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 29 def initialize(attributes = {}) super(attributes) @action = attributes[:action] || attributes['action'] || nil @original_message_type = attributes[:original_message_type] || attributes['original_message_type'] || nil @image_labels = attributes[:image_labels] || attributes['image_labels'] || nil @message_details = attributes[:message_details] || attributes['message_details'] || nil @result = attributes[:result] || attributes['result'] || nil end |
Instance Attribute Details
#action ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 14 def action @action end |
#image_labels ⇒ Array<String>
20 21 22 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 20 def image_labels @image_labels end |
#message_details ⇒ FlagMessageDetailsResponse
23 24 25 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 23 def @message_details end |
#original_message_type ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 17 def @original_message_type end |
#result ⇒ MessageModerationResult
Returns Result of the message moderation.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 26 def result @result end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/automod_details_response.rb', line 39 def self.json_field_mappings { action: 'action', original_message_type: 'original_message_type', image_labels: 'image_labels', message_details: 'message_details', result: 'result' } end |