Class: WebRTC::RTCSessionDescriptionInit

Inherits:
Object
  • Object
show all
Defined in:
lib/webrtc/parity_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sdpObject (readonly)

Returns the value of attribute sdp.



156
157
158
# File 'lib/webrtc/parity_types.rb', line 156

def sdp
  @sdp
end

#typeObject (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_hObject



163
164
165
# File 'lib/webrtc/parity_types.rb', line 163

def to_h
  { type: @type, sdp: @sdp }
end