Class: GetStream::Generated::Models::ConfigOverrides
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ConfigOverrides
show all
- Defined in:
- lib/getstream_ruby/generated/models/config_overrides.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(attributes = {}) ⇒ ConfigOverrides
Initialize with attributes
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 56
def initialize(attributes = {})
super(attributes)
@blocklist = attributes[:blocklist] || attributes['blocklist'] || nil
@blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil
@count_messages = attributes[:count_messages] || attributes['count_messages'] || nil
@max_message_length = attributes[:max_message_length] || attributes['max_message_length'] || nil
@quotes = attributes[:quotes] || attributes['quotes'] || nil
@reactions = attributes[:reactions] || attributes['reactions'] || nil
@replies = attributes[:replies] || attributes['replies'] || nil
@shared_locations = attributes[:shared_locations] || attributes['shared_locations'] || nil
@typing_events = attributes[:typing_events] || attributes['typing_events'] || nil
@uploads = attributes[:uploads] || attributes['uploads'] || nil
@url_enrichment = attributes[:url_enrichment] || attributes['url_enrichment'] || nil
@user_message_reminders = attributes[:user_message_reminders] || attributes['user_message_reminders'] || nil
@commands = attributes[:commands] || attributes['commands'] || nil
@grants = attributes[:grants] || attributes['grants'] || nil
end
|
Instance Attribute Details
#blocklist ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 14
def blocklist
@blocklist
end
|
#blocklist_behavior ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 17
def blocklist_behavior
@blocklist_behavior
end
|
#commands ⇒ Array<String>
50
51
52
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 50
def commands
@commands
end
|
#count_messages ⇒ Boolean
20
21
22
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 20
def count_messages
@count_messages
end
|
#grants ⇒ Hash<String, Array<String>>
53
54
55
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 53
def grants
@grants
end
|
#max_message_length ⇒ Integer
23
24
25
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 23
def max_message_length
@max_message_length
end
|
#quotes ⇒ Boolean
26
27
28
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 26
def quotes
@quotes
end
|
#reactions ⇒ Boolean
29
30
31
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 29
def reactions
@reactions
end
|
#replies ⇒ Boolean
32
33
34
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 32
def replies
@replies
end
|
#shared_locations ⇒ Boolean
35
36
37
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 35
def shared_locations
@shared_locations
end
|
#typing_events ⇒ Boolean
38
39
40
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 38
def typing_events
@typing_events
end
|
#uploads ⇒ Boolean
41
42
43
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 41
def uploads
@uploads
end
|
#url_enrichment ⇒ Boolean
44
45
46
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 44
def url_enrichment
@url_enrichment
end
|
#user_message_reminders ⇒ Boolean
47
48
49
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 47
def user_message_reminders
@user_message_reminders
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# File 'lib/getstream_ruby/generated/models/config_overrides.rb', line 75
def self.json_field_mappings
{
blocklist: 'blocklist',
blocklist_behavior: 'blocklist_behavior',
count_messages: 'count_messages',
max_message_length: 'max_message_length',
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',
commands: 'commands',
grants: 'grants'
}
end
|