Class: WebRTC::RTCDtlsFingerprint
- Inherits:
-
Object
- Object
- WebRTC::RTCDtlsFingerprint
- Defined in:
- lib/webrtc/dtls_transport.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
readonly
Returns the value of attribute algorithm.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(algorithm:, value:) ⇒ RTCDtlsFingerprint
constructor
A new instance of RTCDtlsFingerprint.
- #to_h ⇒ Object
Constructor Details
#initialize(algorithm:, value:) ⇒ RTCDtlsFingerprint
Returns a new instance of RTCDtlsFingerprint.
42 43 44 45 |
# File 'lib/webrtc/dtls_transport.rb', line 42 def initialize(algorithm:, value:) @algorithm = algorithm @value = value end |
Instance Attribute Details
#algorithm ⇒ Object (readonly)
Returns the value of attribute algorithm.
40 41 42 |
# File 'lib/webrtc/dtls_transport.rb', line 40 def algorithm @algorithm end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
40 41 42 |
# File 'lib/webrtc/dtls_transport.rb', line 40 def value @value end |
Instance Method Details
#to_h ⇒ Object
47 48 49 50 51 52 |
# File 'lib/webrtc/dtls_transport.rb', line 47 def to_h { algorithm: @algorithm, value: @value } end |