Class: WebRTC::RTCStatsCollectorCallback
- Inherits:
-
Object
- Object
- WebRTC::RTCStatsCollectorCallback
- Defined in:
- lib/webrtc/observers.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ RTCStatsCollectorCallback
constructor
A new instance of RTCStatsCollectorCallback.
- #on_stats_delivered(response) ⇒ Object
Constructor Details
#initialize(&block) ⇒ RTCStatsCollectorCallback
Returns a new instance of RTCStatsCollectorCallback.
43 44 45 |
# File 'lib/webrtc/observers.rb', line 43 def initialize(&block) @block = block end |
Instance Method Details
#on_stats_delivered(response) ⇒ Object
47 48 49 |
# File 'lib/webrtc/observers.rb', line 47 def on_stats_delivered(response) @block&.call(response) end |