Class: GetStream::Generated::Models::ChatPreferencesResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ChatPreferencesResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/chat_preferences_response.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 with attributes
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 35
def initialize(attributes = {})
super(attributes)
@channel_mentions = attributes.fetch(:channel_mentions) { attributes.fetch('channel_mentions', nil) }
@default_preference = attributes.fetch(:default_preference) { attributes.fetch('default_preference', nil) }
@direct_mentions = attributes.fetch(:direct_mentions) { attributes.fetch('direct_mentions', nil) }
@group_mentions = attributes.fetch(:group_mentions) { attributes.fetch('group_mentions', nil) }
@here_mentions = attributes.fetch(:here_mentions) { attributes.fetch('here_mentions', nil) }
@role_mentions = attributes.fetch(:role_mentions) { attributes.fetch('role_mentions', nil) }
@thread_replies = attributes.fetch(:thread_replies) { attributes.fetch('thread_replies', nil) }
end
|
Instance Attribute Details
#channel_mentions ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 14
def channel_mentions
@channel_mentions
end
|
#default_preference ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 17
def default_preference
@default_preference
end
|
#direct_mentions ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 20
def direct_mentions
@direct_mentions
end
|
#group_mentions ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 23
def group_mentions
@group_mentions
end
|
#here_mentions ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 26
def here_mentions
@here_mentions
end
|
#role_mentions ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 29
def role_mentions
@role_mentions
end
|
#thread_replies ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/chat_preferences_response.rb', line 32
def thread_replies
@thread_replies
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/chat_preferences_response.rb', line 47
def self.json_field_mappings
{
channel_mentions: 'channel_mentions',
default_preference: 'default_preference',
direct_mentions: 'direct_mentions',
group_mentions: 'group_mentions',
here_mentions: 'here_mentions',
role_mentions: 'role_mentions',
thread_replies: 'thread_replies'
}
end
|