Class: SonyCameraRemoteAPI::LiveviewImage
- Inherits:
-
Object
- Object
- SonyCameraRemoteAPI::LiveviewImage
- Defined in:
- lib/sony_camera_remote_api/packet.rb
Overview
Liveview image class
Instance Attribute Summary collapse
-
#jpeg_data ⇒ Object
readonly
Returns the value of attribute jpeg_data.
-
#sequence_number ⇒ Object
readonly
Returns the value of attribute sequence_number.
-
#time_stamp ⇒ Object
readonly
Returns the value of attribute time_stamp.
Instance Method Summary collapse
-
#initialize(packet) ⇒ LiveviewImage
constructor
A new instance of LiveviewImage.
Constructor Details
#initialize(packet) ⇒ LiveviewImage
Returns a new instance of LiveviewImage.
78 79 80 81 82 |
# File 'lib/sony_camera_remote_api/packet.rb', line 78 def initialize(packet) @sequence_number = packet.sequence_number @time_stamp = packet.time_stamp @jpeg_data = packet.payload.jpeg_data end |
Instance Attribute Details
#jpeg_data ⇒ Object (readonly)
Returns the value of attribute jpeg_data.
77 78 79 |
# File 'lib/sony_camera_remote_api/packet.rb', line 77 def jpeg_data @jpeg_data end |
#sequence_number ⇒ Object (readonly)
Returns the value of attribute sequence_number.
77 78 79 |
# File 'lib/sony_camera_remote_api/packet.rb', line 77 def sequence_number @sequence_number end |
#time_stamp ⇒ Object (readonly)
Returns the value of attribute time_stamp.
77 78 79 |
# File 'lib/sony_camera_remote_api/packet.rb', line 77 def time_stamp @time_stamp end |