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).
-
#queue_type ⇒ String
Queue type this action config belongs to.
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
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 35 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'] @queue_type = attributes[:queue_type] || attributes['queue_type'] || nil @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.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 32 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 |
#queue_type ⇒ String
Returns Queue type this action config belongs to.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/moderation_action_config_response.rb', line 29 def queue_type @queue_type 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_action_config_response.rb', line 47 def self.json_field_mappings { action: 'action', description: 'description', entity_type: 'entity_type', icon: 'icon', order: 'order', queue_type: 'queue_type', custom: 'custom' } end |