Class: GetStream::Generated::Models::GetCallParticipantSessionMetricsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::GetCallParticipantSessionMetricsResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/get_call_participant_session_metrics_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 with attributes
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 41
def initialize(attributes = {})
super(attributes)
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
@is_publisher = attributes.fetch(:is_publisher) { attributes.fetch('is_publisher', nil) }
@is_subscriber = attributes.fetch(:is_subscriber) { attributes.fetch('is_subscriber', nil) }
@joined_at = attributes.fetch(:joined_at) { attributes.fetch('joined_at', nil) }
@publisher_type = attributes.fetch(:publisher_type) { attributes.fetch('publisher_type', nil) }
@user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
@user_session_id = attributes.fetch(:user_session_id) { attributes.fetch('user_session_id', nil) }
@published_tracks = attributes.fetch(:published_tracks) { attributes.fetch('published_tracks', nil) }
@client = attributes.fetch(:client) { attributes.fetch('client', nil) }
end
|
Instance Attribute Details
38
39
40
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 38
def client
@client
end
|
#duration ⇒ String
Returns Duration of the request in milliseconds.
14
15
16
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 14
def duration
@duration
end
|
#is_publisher ⇒ Boolean
17
18
19
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 17
def is_publisher
@is_publisher
end
|
#is_subscriber ⇒ Boolean
20
21
22
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 20
def is_subscriber
@is_subscriber
end
|
#joined_at ⇒ DateTime
23
24
25
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 23
def joined_at
@joined_at
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 35
def published_tracks
@published_tracks
end
|
#publisher_type ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 26
def publisher_type
@publisher_type
end
|
#user_id ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 29
def user_id
@user_id
end
|
#user_session_id ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/get_call_participant_session_metrics_response.rb', line 32
def user_session_id
@user_session_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/get_call_participant_session_metrics_response.rb', line 55
def self.json_field_mappings
{
duration: 'duration',
is_publisher: 'is_publisher',
is_subscriber: 'is_subscriber',
joined_at: 'joined_at',
publisher_type: 'publisher_type',
user_id: 'user_id',
user_session_id: 'user_session_id',
published_tracks: 'published_tracks',
client: 'client'
}
end
|