Class: GPhoto2::Port
- Inherits:
-
Object
- Object
- GPhoto2::Port
- Includes:
- FFI::GPhoto2Port, Struct
- Defined in:
- lib/gphoto2/port.rb
Constant Summary
Constants included from FFI::GPhoto2Port
FFI::GPhoto2Port::GPPortSerialParity, FFI::GPhoto2Port::GPPortType, FFI::GPhoto2Port::GP_ERROR, FFI::GPhoto2Port::GP_ERROR_BAD_PARAMETERS, FFI::GPhoto2Port::GP_ERROR_FIXED_LIMIT_EXCEEDED, FFI::GPhoto2Port::GP_ERROR_HAL, FFI::GPhoto2Port::GP_ERROR_IO, FFI::GPhoto2Port::GP_ERROR_IO_INIT, FFI::GPhoto2Port::GP_ERROR_IO_LOCK, FFI::GPhoto2Port::GP_ERROR_IO_READ, FFI::GPhoto2Port::GP_ERROR_IO_SERIAL_SPEED, FFI::GPhoto2Port::GP_ERROR_IO_SUPPORTED_SERIAL, FFI::GPhoto2Port::GP_ERROR_IO_SUPPORTED_USB, FFI::GPhoto2Port::GP_ERROR_IO_UPDATE, FFI::GPhoto2Port::GP_ERROR_IO_USB_CLAIM, FFI::GPhoto2Port::GP_ERROR_IO_USB_CLEAR_HALT, FFI::GPhoto2Port::GP_ERROR_IO_USB_FIND, FFI::GPhoto2Port::GP_ERROR_IO_WRITE, FFI::GPhoto2Port::GP_ERROR_LIBRARY, FFI::GPhoto2Port::GP_ERROR_NOT_SUPPORTED, FFI::GPhoto2Port::GP_ERROR_NO_MEMORY, FFI::GPhoto2Port::GP_ERROR_TIMEOUT, FFI::GPhoto2Port::GP_ERROR_UNKNOWN_PORT, FFI::GPhoto2Port::GP_OK
Instance Attribute Summary
Attributes included from Struct
Instance Method Summary collapse
- #close ⇒ void
- #info=(info) ⇒ PortInfo
-
#initialize ⇒ Port
constructor
A new instance of Port.
- #open ⇒ void
- #reset ⇒ void
Methods included from Struct
Constructor Details
#initialize ⇒ Port
Returns a new instance of Port.
6 7 8 |
# File 'lib/gphoto2/port.rb', line 6 def initialize @ptr = new end |
Instance Method Details
#close ⇒ void
This method returns an undefined value.
23 24 25 |
# File 'lib/gphoto2/port.rb', line 23 def close _close end |
#info=(info) ⇒ PortInfo
12 13 14 15 |
# File 'lib/gphoto2/port.rb', line 12 def info=(info) set_info(info) info end |
#open ⇒ void
This method returns an undefined value.
18 19 20 |
# File 'lib/gphoto2/port.rb', line 18 def open _open end |
#reset ⇒ void
This method returns an undefined value.
28 29 30 |
# File 'lib/gphoto2/port.rb', line 28 def reset _reset end |