Class: WebRTC::RTCSessionDescriptionInit
- Inherits:
-
Object
- Object
- WebRTC::RTCSessionDescriptionInit
- Defined in:
- lib/webrtc/parity_types.rb
Instance Attribute Summary collapse
-
#sdp ⇒ Object
readonly
Returns the value of attribute sdp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, sdp:) ⇒ RTCSessionDescriptionInit
constructor
A new instance of RTCSessionDescriptionInit.
- #to_h ⇒ Object
Constructor Details
#initialize(type:, sdp:) ⇒ RTCSessionDescriptionInit
Returns a new instance of RTCSessionDescriptionInit.
158 159 160 161 |
# File 'lib/webrtc/parity_types.rb', line 158 def initialize(type:, sdp:) @type = type @sdp = sdp end |
Instance Attribute Details
#sdp ⇒ Object (readonly)
Returns the value of attribute sdp.
156 157 158 |
# File 'lib/webrtc/parity_types.rb', line 156 def sdp @sdp end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
156 157 158 |
# File 'lib/webrtc/parity_types.rb', line 156 def type @type end |
Instance Method Details
#to_h ⇒ Object
163 164 165 |
# File 'lib/webrtc/parity_types.rb', line 163 def to_h { type: @type, sdp: @sdp } end |