Class: GPhoto2::CameraFilePath
- Inherits:
-
Object
- Object
- GPhoto2::CameraFilePath
- Includes:
- Struct
- Defined in:
- lib/gphoto2/camera_file_path.rb
Instance Attribute Summary
Attributes included from Struct
Instance Method Summary collapse
- #folder ⇒ String
-
#initialize(ptr = nil) ⇒ CameraFilePath
constructor
A new instance of CameraFilePath.
- #name ⇒ String
Methods included from Struct
Constructor Details
#initialize(ptr = nil) ⇒ CameraFilePath
Returns a new instance of CameraFilePath.
5 6 7 |
# File 'lib/gphoto2/camera_file_path.rb', line 5 def initialize(ptr = nil) @ptr = ptr || FFI::GPhoto2::CameraFilePath.new end |
Instance Method Details
#folder ⇒ String
15 16 17 |
# File 'lib/gphoto2/camera_file_path.rb', line 15 def folder ptr[:folder].to_s end |
#name ⇒ String
10 11 12 |
# File 'lib/gphoto2/camera_file_path.rb', line 10 def name ptr[:name].to_s end |