Class: WebRTC::CreateOfferOptions
- Inherits:
-
Object
- Object
- WebRTC::CreateOfferOptions
- Defined in:
- lib/webrtc/parity_types.rb
Instance Attribute Summary collapse
-
#ice_restart ⇒ Object
Returns the value of attribute ice_restart.
-
#voice_activity_detection ⇒ Object
Returns the value of attribute voice_activity_detection.
Instance Method Summary collapse
-
#initialize(ice_restart: false, voice_activity_detection: true) ⇒ CreateOfferOptions
constructor
A new instance of CreateOfferOptions.
- #to_h ⇒ Object
Constructor Details
#initialize(ice_restart: false, voice_activity_detection: true) ⇒ CreateOfferOptions
Returns a new instance of CreateOfferOptions.
130 131 132 133 |
# File 'lib/webrtc/parity_types.rb', line 130 def initialize(ice_restart: false, voice_activity_detection: true) @ice_restart = ice_restart @voice_activity_detection = voice_activity_detection end |
Instance Attribute Details
#ice_restart ⇒ Object
Returns the value of attribute ice_restart.
128 129 130 |
# File 'lib/webrtc/parity_types.rb', line 128 def ice_restart @ice_restart end |
#voice_activity_detection ⇒ Object
Returns the value of attribute voice_activity_detection.
128 129 130 |
# File 'lib/webrtc/parity_types.rb', line 128 def voice_activity_detection @voice_activity_detection end |
Instance Method Details
#to_h ⇒ Object
135 136 137 138 139 140 |
# File 'lib/webrtc/parity_types.rb', line 135 def to_h { ice_restart: @ice_restart, voice_activity_detection: @voice_activity_detection } end |