Class: GetStream::Generated::Models::ModerationActionConfigResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ModerationActionConfigResponse
- Defined in:
- lib/getstream_ruby/generated/models/moderation_action_config_response.rb
Overview
Configuration for a moderation action
Instance Attribute Summary collapse
-
#action ⇒ String
The action to take.
-
#custom ⇒ Object
Custom data for the action.
-
#description ⇒ String
Description of what this action does.
-
#entity_type ⇒ String
Type of entity this action applies to.
-
#icon ⇒ String
Icon for the dashboard.
-
#order ⇒ Integer
Display order (lower numbers shown first).
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ModerationActionConfigResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ModerationActionConfigResponse
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 32 def initialize(attributes = {}) super(attributes) @action = attributes[:action] || attributes['action'] @description = attributes[:description] || attributes['description'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @icon = attributes[:icon] || attributes['icon'] @order = attributes[:order] || attributes['order'] @custom = attributes[:custom] || attributes['custom'] || nil end |
Instance Attribute Details
#action ⇒ String
Returns The action to take.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 14 def action @action end |
#custom ⇒ Object
Returns Custom data for the action.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 29 def custom @custom end |
#description ⇒ String
Returns Description of what this action does.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 17 def description @description end |
#entity_type ⇒ String
Returns Type of entity this action applies to.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 20 def entity_type @entity_type end |
#icon ⇒ String
Returns Icon for the dashboard.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 23 def icon @icon end |
#order ⇒ Integer
Returns Display order (lower numbers shown first).
26 27 28 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 26 def order @order end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 43 def self.json_field_mappings { action: 'action', description: 'description', entity_type: 'entity_type', icon: 'icon', order: 'order', custom: 'custom' } end |