Class: GetStream::Generated::Models::GetCallSessionParticipantStatsDetailsResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb

Overview

Basic response information

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 = {}) ⇒ GetCallSessionParticipantStatsDetailsResponse

Initialize with attributes



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 44

def initialize(attributes = {})
  super(attributes)
  @call_id = attributes[:call_id] || attributes['call_id']
  @call_session_id = attributes[:call_session_id] || attributes['call_session_id']
  @call_type = attributes[:call_type] || attributes['call_type']
  @duration = attributes[:duration] || attributes['duration']
  @user_id = attributes[:user_id] || attributes['user_id']
  @user_session_id = attributes[:user_session_id] || attributes['user_session_id']
  @publisher = attributes[:publisher] || attributes['publisher'] || nil
  @subscriber = attributes[:subscriber] || attributes['subscriber'] || nil
  @timeframe = attributes[:timeframe] || attributes['timeframe'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#call_idString

Returns:

  • (String)


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

def call_id
  @call_id
end

#call_session_idString

Returns:

  • (String)


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

def call_session_id
  @call_session_id
end

#call_typeString

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 20

def call_type
  @call_type
end

#durationString

Returns Duration of the request in milliseconds.

Returns:

  • (String)

    Duration of the request in milliseconds



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

def duration
  @duration
end

#publisherParticipantSeriesPublisherStats



32
33
34
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 32

def publisher
  @publisher
end

#subscriberParticipantSeriesSubscriberStats



35
36
37
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 35

def subscriber
  @subscriber
end

#timeframeParticipantSeriesTimeframe



38
39
40
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 38

def timeframe
  @timeframe
end

#userParticipantSeriesUserStats



41
42
43
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 41

def user
  @user
end

#user_idString

Returns:

  • (String)


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

def user_id
  @user_id
end

#user_session_idString

Returns:

  • (String)


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

def user_session_id
  @user_session_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/getstream_ruby/generated/models/get_call_session_participant_stats_details_response.rb', line 59

def self.json_field_mappings
  {
    call_id: 'call_id',
    call_session_id: 'call_session_id',
    call_type: 'call_type',
    duration: 'duration',
    user_id: 'user_id',
    user_session_id: 'user_session_id',
    publisher: 'publisher',
    subscriber: 'subscriber',
    timeframe: 'timeframe',
    user: 'user'
  }
end