Class: WebRTC::RTCDtlsFingerprint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#algorithmObject (readonly)

Returns the value of attribute algorithm.



40
41
42
# File 'lib/webrtc/dtls_transport.rb', line 40

def algorithm
  @algorithm
end

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



47
48
49
50
51
52
# File 'lib/webrtc/dtls_transport.rb', line 47

def to_h
  {
    algorithm: @algorithm,
    value: @value
  }
end