Class: WebRTC::RTCIceParameters

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject (readonly)

Returns the value of attribute password.



81
82
83
# File 'lib/webrtc/ice_transport.rb', line 81

def password
  @password
end

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



88
89
90
91
92
93
# File 'lib/webrtc/ice_transport.rb', line 88

def to_h
  {
    usernameFragment: @username_fragment,
    password: @password
  }
end