Class: WebRTC::RTCIceParameters
- Inherits:
-
Object
- Object
- WebRTC::RTCIceParameters
- Defined in:
- lib/webrtc/ice_transport.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username_fragment ⇒ Object
readonly
Returns the value of attribute username_fragment.
Instance Method Summary collapse
-
#initialize(username_fragment:, password:) ⇒ RTCIceParameters
constructor
A new instance of RTCIceParameters.
- #to_h ⇒ Object
Constructor Details
#initialize(username_fragment:, password:) ⇒ RTCIceParameters
Returns a new instance of RTCIceParameters.
83 84 85 86 |
# File 'lib/webrtc/ice_transport.rb', line 83 def initialize(username_fragment:, password:) @username_fragment = username_fragment @password = password end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
81 82 83 |
# File 'lib/webrtc/ice_transport.rb', line 81 def password @password end |
#username_fragment ⇒ Object (readonly)
Returns the value of attribute username_fragment.
81 82 83 |
# File 'lib/webrtc/ice_transport.rb', line 81 def username_fragment @username_fragment end |
Instance Method Details
#to_h ⇒ Object
88 89 90 91 92 93 |
# File 'lib/webrtc/ice_transport.rb', line 88 def to_h { usernameFragment: @username_fragment, password: @password } end |