Class: SonyCameraRemoteAPI::LiveviewImage

Inherits:
Object
  • Object
show all
Defined in:
lib/sony_camera_remote_api/packet.rb

Overview

Liveview image class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(packet) ⇒ 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_dataObject (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_numberObject (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_stampObject (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