Class: WebRTC::RTCEncodedImage
- Inherits:
-
Object
- Object
- WebRTC::RTCEncodedImage
- Defined in:
- lib/webrtc/parity_types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#frame_type ⇒ Object
readonly
Returns the value of attribute frame_type.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(data:, timestamp:, frame_type:, width:, height:) ⇒ RTCEncodedImage
constructor
A new instance of RTCEncodedImage.
Constructor Details
#initialize(data:, timestamp:, frame_type:, width:, height:) ⇒ RTCEncodedImage
Returns a new instance of RTCEncodedImage.
118 119 120 121 122 123 124 |
# File 'lib/webrtc/parity_types.rb', line 118 def initialize(data:, timestamp:, frame_type:, width:, height:) @data = data @timestamp = @frame_type = frame_type @width = width @height = height end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
116 117 118 |
# File 'lib/webrtc/parity_types.rb', line 116 def data @data end |
#frame_type ⇒ Object (readonly)
Returns the value of attribute frame_type.
116 117 118 |
# File 'lib/webrtc/parity_types.rb', line 116 def frame_type @frame_type end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
116 117 118 |
# File 'lib/webrtc/parity_types.rb', line 116 def height @height end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
116 117 118 |
# File 'lib/webrtc/parity_types.rb', line 116 def @timestamp end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
116 117 118 |
# File 'lib/webrtc/parity_types.rb', line 116 def width @width end |