Class: Samsung::Protocol::KeyFrame

Inherits:
Frame
  • Object
show all
Defined in:
lib/samsung/protocol/key_frame.rb

Instance Attribute Summary

Attributes inherited from Frame

#data

Instance Method Summary collapse

Methods inherited from Frame

#hex, #pop_frame, #pop_int16, #pop_int32, #pop_int8, #pop_string, #pop_string64, #push_frame, #push_int16, #push_int32, #push_int8, #push_string, #push_string64, #size

Constructor Details

#initialize(key) ⇒ KeyFrame

Returns a new instance of KeyFrame.



4
5
6
7
8
9
10
# File 'lib/samsung/protocol/key_frame.rb', line 4

def initialize(key)
  super()
  push_int8(0)
  push_int8(0)
  push_int8(0)
  push_string64(key)
end