Class: WebRTC::DataChannelInit
- Inherits:
-
Object
- Object
- WebRTC::DataChannelInit
- Defined in:
- lib/webrtc/parity_types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#max_packet_life_time ⇒ Object
readonly
Returns the value of attribute max_packet_life_time.
-
#max_retransmits ⇒ Object
readonly
Returns the value of attribute max_retransmits.
-
#negotiated ⇒ Object
readonly
Returns the value of attribute negotiated.
-
#ordered ⇒ Object
readonly
Returns the value of attribute ordered.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(ordered: true, max_packet_life_time: nil, max_retransmits: nil, protocol: '', negotiated: false, id: nil) ⇒ DataChannelInit
constructor
A new instance of DataChannelInit.
- #to_h ⇒ Object
Constructor Details
#initialize(ordered: true, max_packet_life_time: nil, max_retransmits: nil, protocol: '', negotiated: false, id: nil) ⇒ DataChannelInit
Returns a new instance of DataChannelInit.
191 192 193 194 195 196 197 198 199 |
# File 'lib/webrtc/parity_types.rb', line 191 def initialize(ordered: true, max_packet_life_time: nil, max_retransmits: nil, protocol: '', negotiated: false, id: nil) @ordered = ordered @max_packet_life_time = max_packet_life_time @max_retransmits = max_retransmits @protocol = protocol @negotiated = negotiated @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
189 190 191 |
# File 'lib/webrtc/parity_types.rb', line 189 def id @id end |
#max_packet_life_time ⇒ Object (readonly)
Returns the value of attribute max_packet_life_time.
189 190 191 |
# File 'lib/webrtc/parity_types.rb', line 189 def max_packet_life_time @max_packet_life_time end |
#max_retransmits ⇒ Object (readonly)
Returns the value of attribute max_retransmits.
189 190 191 |
# File 'lib/webrtc/parity_types.rb', line 189 def max_retransmits @max_retransmits end |
#negotiated ⇒ Object (readonly)
Returns the value of attribute negotiated.
189 190 191 |
# File 'lib/webrtc/parity_types.rb', line 189 def negotiated @negotiated end |
#ordered ⇒ Object (readonly)
Returns the value of attribute ordered.
189 190 191 |
# File 'lib/webrtc/parity_types.rb', line 189 def ordered @ordered end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
189 190 191 |
# File 'lib/webrtc/parity_types.rb', line 189 def protocol @protocol end |
Instance Method Details
#to_h ⇒ Object
201 202 203 204 205 206 207 208 209 210 |
# File 'lib/webrtc/parity_types.rb', line 201 def to_h { ordered: @ordered, max_packet_life_time: @max_packet_life_time, max_retransmits: @max_retransmits, protocol: @protocol, negotiated: @negotiated, id: @id } end |