Class: GetStream::Generated::Models::CallStatsParticipantCounts
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::CallStatsParticipantCounts
show all
- Defined in:
- lib/getstream_ruby/generated/models/call_stats_participant_counts.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/call_stats_participant_counts.rb', line 35
def initialize(attributes = {})
super(attributes)
@live_sessions = attributes[:live_sessions] || attributes['live_sessions']
@participants = attributes[:participants] || attributes['participants']
@peak_concurrent_sessions = attributes[:peak_concurrent_sessions] || attributes['peak_concurrent_sessions']
@peak_concurrent_users = attributes[:peak_concurrent_users] || attributes['peak_concurrent_users']
@publishers = attributes[:publishers] || attributes['publishers']
@sessions = attributes[:sessions] || attributes['sessions']
@total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil
end
|
Instance Attribute Details
#live_sessions ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 14
def live_sessions
@live_sessions
end
|
#participants ⇒ Integer
17
18
19
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 17
def participants
@participants
end
|
#peak_concurrent_sessions ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 20
def peak_concurrent_sessions
@peak_concurrent_sessions
end
|
#peak_concurrent_users ⇒ Integer
23
24
25
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 23
def peak_concurrent_users
@peak_concurrent_users
end
|
#publishers ⇒ Integer
26
27
28
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 26
def publishers
@publishers
end
|
#sessions ⇒ Integer
29
30
31
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 29
def sessions
@sessions
end
|
#total_participant_duration ⇒ Integer
32
33
34
|
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 32
def total_participant_duration
@total_participant_duration
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/call_stats_participant_counts.rb', line 47
def self.json_field_mappings
{
live_sessions: 'live_sessions',
participants: 'participants',
peak_concurrent_sessions: 'peak_concurrent_sessions',
peak_concurrent_users: 'peak_concurrent_users',
publishers: 'publishers',
sessions: 'sessions',
total_participant_duration: 'total_participant_duration'
}
end
|