Class: GetStream::Generated::Models::FeedsPreferencesResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::FeedsPreferencesResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/feeds_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
32
33
34
35
36
37
38
39
40
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 32
def initialize(attributes = {})
super(attributes)
= attributes[:comment] || attributes['comment'] || nil
= attributes[:comment_reaction] || attributes['comment_reaction'] || nil
@follow = attributes[:follow] || attributes['follow'] || nil
@mention = attributes[:mention] || attributes['mention'] || nil
@reaction = attributes[:reaction] || attributes['reaction'] || nil
@custom_activity_types = attributes[:custom_activity_types] || attributes['custom_activity_types'] || nil
end
|
Instance Attribute Details
14
15
16
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 14
def
end
|
17
18
19
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 17
def
end
|
#custom_activity_types ⇒ Hash<String, String>
29
30
31
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 29
def custom_activity_types
@custom_activity_types
end
|
#follow ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 20
def follow
@follow
end
|
#mention ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 23
def mention
@mention
end
|
#reaction ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/feeds_preferences_response.rb', line 26
def reaction
@reaction
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/feeds_preferences_response.rb', line 43
def self.json_field_mappings
{
comment: 'comment',
comment_reaction: 'comment_reaction',
follow: 'follow',
mention: 'mention',
reaction: 'reaction',
custom_activity_types: 'custom_activity_types'
}
end
|