Class: GetStream::Generated::Models::CallStatsParticipantCounts

Inherits:
BaseModel
  • Object
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(attributes = {}) ⇒ CallStatsParticipantCounts

Initialize with attributes



32
33
34
35
36
37
38
39
40
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 32

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']
end

Instance Attribute Details

#live_sessionsInteger



14
15
16
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 14

def live_sessions
  @live_sessions
end

#participantsInteger



17
18
19
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 17

def participants
  @participants
end

#peak_concurrent_sessionsInteger



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_usersInteger



23
24
25
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 23

def peak_concurrent_users
  @peak_concurrent_users
end

#publishersInteger



26
27
28
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 26

def publishers
  @publishers
end

#sessionsInteger



29
30
31
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 29

def sessions
  @sessions
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/call_stats_participant_counts.rb', line 43

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'
  }
end