Class: GPhoto2::Entry

Inherits:
Object
  • Object
show all
Includes:
FFI::GPhoto2
Defined in:
lib/gphoto2/entry.rb

Constant Summary

Constants included from FFI::GPhoto2

FFI::GPhoto2::CameraCaptureType, FFI::GPhoto2::CameraDriverStatus, FFI::GPhoto2::CameraEventType, FFI::GPhoto2::CameraFileAccessType, FFI::GPhoto2::CameraFileInfoFields, FFI::GPhoto2::CameraFileOperation, FFI::GPhoto2::CameraFilePermissions, FFI::GPhoto2::CameraFileStatus, FFI::GPhoto2::CameraFileType, FFI::GPhoto2::CameraFolderOperation, FFI::GPhoto2::CameraOperation, FFI::GPhoto2::CameraWidgetType, FFI::GPhoto2::GphotoDeviceType

Instance Method Summary collapse

Constructor Details

#initialize(camera_list, index) ⇒ Entry

Returns a new instance of Entry.



5
6
7
8
# File 'lib/gphoto2/entry.rb', line 5

def initialize(camera_list, index)
  @camera_list = camera_list
  @index = index
end

Instance Method Details

#nameString

Returns:

  • (String)


11
12
13
# File 'lib/gphoto2/entry.rb', line 11

def name
  get_name
end

#valueString

Returns:

  • (String)


16
17
18
# File 'lib/gphoto2/entry.rb', line 16

def value
  get_value
end