Class: GPhoto2::CameraAbilitiesList

Inherits:
Object
  • Object
show all
Includes:
FFI::GPhoto2, Struct
Defined in:
lib/gphoto2/camera_abilities_list.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 Attribute Summary

Attributes included from Struct

#ptr

Instance Method Summary collapse

Methods included from Struct

#to_ptr

Constructor Details

#initialize(context) ⇒ CameraAbilitiesList

Returns a new instance of CameraAbilitiesList.

Parameters:



7
8
9
10
11
# File 'lib/gphoto2/camera_abilities_list.rb', line 7

def initialize(context)
  @context = context
  new
  load
end

Instance Method Details

#at(index) ⇒ GPhoto2::CameraAbilities Also known as: []

Parameters:

  • index (Integer)

Returns:



27
28
29
# File 'lib/gphoto2/camera_abilities_list.rb', line 27

def at(index)
  CameraAbilities.new(self, index)
end

#detectGPhoto2::CameraList

Returns:



14
15
16
# File 'lib/gphoto2/camera_abilities_list.rb', line 14

def detect
  _detect
end

#lookup_model(model) ⇒ Integer Also known as: index

Parameters:

  • model (String)

Returns:

  • (Integer)


20
21
22
# File 'lib/gphoto2/camera_abilities_list.rb', line 20

def lookup_model(model)
  _lookup_model(model)
end