Class: GetStream::Generated::Models::ActivityMarkedEvent
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ActivityMarkedEvent
show all
- Defined in:
- lib/getstream_ruby/generated/models/activity_marked_event.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
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 38
def initialize(attributes = {})
super(attributes)
@all_read = attributes[:all_read] || attributes['all_read']
@all_seen = attributes[:all_seen] || attributes['all_seen']
@created_at = attributes[:created_at] || attributes['created_at']
@feed_id = attributes[:feed_id] || attributes['feed_id']
@user_id = attributes[:user_id] || attributes['user_id']
@type = attributes[:type] || attributes['type'] || "activity.marked"
@marked_read = attributes[:marked_read] || attributes['marked_read'] || nil
@marked_watched = attributes[:marked_watched] || attributes['marked_watched'] || nil
end
|
Instance Attribute Details
#all_read ⇒ Boolean
14
15
16
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 14
def all_read
@all_read
end
|
#all_seen ⇒ Boolean
17
18
19
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 17
def all_seen
@all_seen
end
|
#created_at ⇒ DateTime
20
21
22
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 20
def created_at
@created_at
end
|
#feed_id ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 23
def feed_id
@feed_id
end
|
#marked_read ⇒ Array<String>
32
33
34
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 32
def marked_read
@marked_read
end
|
#marked_watched ⇒ Array<String>
35
36
37
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 35
def marked_watched
@marked_watched
end
|
#type ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 29
def type
@type
end
|
#user_id ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 26
def user_id
@user_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
51
52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/getstream_ruby/generated/models/activity_marked_event.rb', line 51
def self.json_field_mappings
{
all_read: 'all_read',
all_seen: 'all_seen',
created_at: 'created_at',
feed_id: 'feed_id',
user_id: 'user_id',
type: 'type',
marked_read: 'marked_read',
marked_watched: 'marked_watched'
}
end
|