Class: GetStream::Generated::Models::FeedsNotificationTarget
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::FeedsNotificationTarget
show all
- Defined in:
- lib/getstream_ruby/generated/models/feeds_notification_target.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
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 41
def initialize(attributes = {})
super(attributes)
@id = attributes[:id] || attributes['id']
@name = attributes[:name] || attributes['name'] || nil
@text = attributes[:text] || attributes['text'] || nil
@type = attributes[:type] || attributes['type'] || nil
@user_id = attributes[:user_id] || attributes['user_id'] || nil
@attachments = attributes[:attachments] || attributes['attachments'] || nil
@comment = attributes[:comment] || attributes['comment'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
@parent_activity = attributes[:parent_activity] || attributes['parent_activity'] || nil
end
|
Instance Attribute Details
#attachments ⇒ Array<Attachment>
29
30
31
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 29
def attachments
@attachments
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 32
def
@comment
end
|
#custom ⇒ Object
35
36
37
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 35
def custom
@custom
end
|
#id ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 14
def id
@id
end
|
#name ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 17
def name
@name
end
|
38
39
40
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 38
def parent_activity
@parent_activity
end
|
#text ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 20
def text
@text
end
|
#type ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 23
def type
@type
end
|
#user_id ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 26
def user_id
@user_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/getstream_ruby/generated/models/feeds_notification_target.rb', line 55
def self.json_field_mappings
{
id: 'id',
name: 'name',
text: 'text',
type: 'type',
user_id: 'user_id',
attachments: 'attachments',
comment: 'comment',
custom: 'custom',
parent_activity: 'parent_activity'
}
end
|