Class: GetStream::Generated::Models::PublisherVideoMetrics
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::PublisherVideoMetrics
show all
- Defined in:
- lib/getstream_ruby/generated/models/publisher_video_metrics.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
29
30
31
32
33
34
35
36
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 29
def initialize(attributes = {})
super(attributes)
@bitrate = attributes[:bitrate] || attributes['bitrate'] || nil
@fps_30 = attributes[:fps_30] || attributes['fps_30'] || nil
@frame_encoding_time_ms = attributes[:frame_encoding_time_ms] || attributes['frame_encoding_time_ms'] || nil
@jitter_ms = attributes[:jitter_ms] || attributes['jitter_ms'] || nil
@resolution = attributes[:resolution] || attributes['resolution'] || nil
end
|
Instance Attribute Details
14
15
16
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 14
def bitrate
@bitrate
end
|
17
18
19
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 17
def fps_30
@fps_30
end
|
20
21
22
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 20
def frame_encoding_time_ms
@frame_encoding_time_ms
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 23
def jitter_ms
@jitter_ms
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 26
def resolution
@resolution
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39
40
41
42
43
44
45
46
47
|
# File 'lib/getstream_ruby/generated/models/publisher_video_metrics.rb', line 39
def self.json_field_mappings
{
bitrate: 'bitrate',
fps_30: 'fps_30',
frame_encoding_time_ms: 'frame_encoding_time_ms',
jitter_ms: 'jitter_ms',
resolution: 'resolution'
}
end
|