Class: GetStream::Generated::Models::ChannelConfigOverrides
- Defined in:
- lib/getstream_ruby/generated/models/channel_config_overrides.rb
Overview
Channel configuration overrides
Instance Attribute Summary collapse
- #blocklist ⇒ String
-
#blocklist_behavior ⇒ BlocklistBehavior
What a blocklist does when it matches.
- #chat_preferences ⇒ ChatPreferences
-
#commands ⇒ Array<String>
List of commands that channel supports.
-
#count_messages ⇒ Boolean
Enable/disable message counting.
- #grants ⇒ Hash<String, Array<String>>
-
#max_message_length ⇒ Integer
Overrides max message length.
-
#push_level ⇒ PushLevel
Overrides the push notification level for this channel.
-
#quotes ⇒ Boolean
Enables message quotes.
-
#reactions ⇒ Boolean
Enables or disables reactions.
-
#replies ⇒ Boolean
Enables message replies (threads).
-
#shared_locations ⇒ Boolean
Enable/disable shared locations.
-
#typing_events ⇒ Boolean
Enables or disables typing events.
-
#uploads ⇒ Boolean
Enables or disables file uploads.
-
#url_enrichment ⇒ Boolean
Enables or disables URL enrichment.
-
#user_message_reminders ⇒ Boolean
Enable/disable user message reminders.
-
#voice_transcription ⇒ Boolean
Enables or disables transcription of voice recordings.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChannelConfigOverrides
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChannelConfigOverrides
Initialize with attributes
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 65 def initialize(attributes = {}) super(attributes) @blocklist = attributes.fetch(:blocklist) { attributes.fetch('blocklist', nil) } @blocklist_behavior = attributes.fetch(:blocklist_behavior) { attributes.fetch('blocklist_behavior', nil) } @count_messages = attributes.fetch(:count_messages) { attributes.fetch('count_messages', nil) } @max_message_length = attributes.fetch(:max_message_length) { attributes.fetch('max_message_length', nil) } @push_level = attributes.fetch(:push_level) { attributes.fetch('push_level', nil) } @quotes = attributes.fetch(:quotes) { attributes.fetch('quotes', nil) } @reactions = attributes.fetch(:reactions) { attributes.fetch('reactions', nil) } @replies = attributes.fetch(:replies) { attributes.fetch('replies', nil) } @shared_locations = attributes.fetch(:shared_locations) { attributes.fetch('shared_locations', nil) } @typing_events = attributes.fetch(:typing_events) { attributes.fetch('typing_events', nil) } @uploads = attributes.fetch(:uploads) { attributes.fetch('uploads', nil) } @url_enrichment = attributes.fetch(:url_enrichment) { attributes.fetch('url_enrichment', nil) } @user_message_reminders = attributes.fetch(:user_message_reminders) { attributes.fetch('user_message_reminders', nil) } @voice_transcription = attributes.fetch(:voice_transcription) { attributes.fetch('voice_transcription', nil) } @commands = attributes.fetch(:commands) { attributes.fetch('commands', nil) } @chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) } @grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) } end |
Instance Attribute Details
#blocklist ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 14 def blocklist @blocklist end |
#blocklist_behavior ⇒ BlocklistBehavior
Returns What a blocklist does when it matches. shadow_block is not accepted on a channel override.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 17 def blocklist_behavior @blocklist_behavior end |
#chat_preferences ⇒ ChatPreferences
59 60 61 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 59 def chat_preferences @chat_preferences end |
#commands ⇒ Array<String>
Returns List of commands that channel supports.
56 57 58 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 56 def commands @commands end |
#count_messages ⇒ Boolean
Returns Enable/disable message counting.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 20 def @count_messages end |
#grants ⇒ Hash<String, Array<String>>
62 63 64 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 62 def grants @grants end |
#max_message_length ⇒ Integer
Returns Overrides max message length.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 23 def @max_message_length end |
#push_level ⇒ PushLevel
Returns Overrides the push notification level for this channel.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 26 def push_level @push_level end |
#quotes ⇒ Boolean
Returns Enables message quotes.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 29 def quotes @quotes end |
#reactions ⇒ Boolean
Returns Enables or disables reactions.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 32 def reactions @reactions end |
#replies ⇒ Boolean
Returns Enables message replies (threads).
35 36 37 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 35 def replies @replies end |
#shared_locations ⇒ Boolean
Returns Enable/disable shared locations.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 38 def shared_locations @shared_locations end |
#typing_events ⇒ Boolean
Returns Enables or disables typing events.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 41 def typing_events @typing_events end |
#uploads ⇒ Boolean
Returns Enables or disables file uploads.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 44 def uploads @uploads end |
#url_enrichment ⇒ Boolean
Returns Enables or disables URL enrichment.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 47 def url_enrichment @url_enrichment end |
#user_message_reminders ⇒ Boolean
Returns Enable/disable user message reminders.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 50 def @user_message_reminders end |
#voice_transcription ⇒ Boolean
Returns Enables or disables transcription of voice recordings.
53 54 55 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 53 def voice_transcription @voice_transcription end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/getstream_ruby/generated/models/channel_config_overrides.rb', line 87 def self.json_field_mappings { blocklist: 'blocklist', blocklist_behavior: 'blocklist_behavior', count_messages: 'count_messages', max_message_length: 'max_message_length', push_level: 'push_level', quotes: 'quotes', reactions: 'reactions', replies: 'replies', shared_locations: 'shared_locations', typing_events: 'typing_events', uploads: 'uploads', url_enrichment: 'url_enrichment', user_message_reminders: 'user_message_reminders', voice_transcription: 'voice_transcription', commands: 'commands', chat_preferences: 'chat_preferences', grants: 'grants' } end |