Class: WebRTC::RTCIceCandidateInit
- Inherits:
-
Object
- Object
- WebRTC::RTCIceCandidateInit
- Defined in:
- lib/webrtc/parity_types.rb
Instance Attribute Summary collapse
-
#candidate ⇒ Object
readonly
Returns the value of attribute candidate.
-
#sdp_m_line_index ⇒ Object
readonly
Returns the value of attribute sdp_m_line_index.
-
#sdp_mid ⇒ Object
readonly
Returns the value of attribute sdp_mid.
-
#username_fragment ⇒ Object
readonly
Returns the value of attribute username_fragment.
Instance Method Summary collapse
-
#initialize(candidate:, sdp_mid: nil, sdp_m_line_index: nil, username_fragment: nil) ⇒ RTCIceCandidateInit
constructor
A new instance of RTCIceCandidateInit.
- #to_h ⇒ Object
Constructor Details
#initialize(candidate:, sdp_mid: nil, sdp_m_line_index: nil, username_fragment: nil) ⇒ RTCIceCandidateInit
Returns a new instance of RTCIceCandidateInit.
171 172 173 174 175 176 |
# File 'lib/webrtc/parity_types.rb', line 171 def initialize(candidate:, sdp_mid: nil, sdp_m_line_index: nil, username_fragment: nil) @candidate = candidate @sdp_mid = sdp_mid @sdp_m_line_index = sdp_m_line_index @username_fragment = username_fragment end |
Instance Attribute Details
#candidate ⇒ Object (readonly)
Returns the value of attribute candidate.
169 170 171 |
# File 'lib/webrtc/parity_types.rb', line 169 def candidate @candidate end |
#sdp_m_line_index ⇒ Object (readonly)
Returns the value of attribute sdp_m_line_index.
169 170 171 |
# File 'lib/webrtc/parity_types.rb', line 169 def sdp_m_line_index @sdp_m_line_index end |
#sdp_mid ⇒ Object (readonly)
Returns the value of attribute sdp_mid.
169 170 171 |
# File 'lib/webrtc/parity_types.rb', line 169 def sdp_mid @sdp_mid end |
#username_fragment ⇒ Object (readonly)
Returns the value of attribute username_fragment.
169 170 171 |
# File 'lib/webrtc/parity_types.rb', line 169 def username_fragment @username_fragment end |
Instance Method Details
#to_h ⇒ Object
178 179 180 181 182 183 184 185 |
# File 'lib/webrtc/parity_types.rb', line 178 def to_h { candidate: @candidate, sdp_mid: @sdp_mid, sdp_m_line_index: @sdp_m_line_index, username_fragment: @username_fragment } end |