Class: Sane::API::OptionDescriptor
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Sane::API::OptionDescriptor
- Defined in:
- lib/sane/api.rb
Defined Under Namespace
Classes: ConstraintType
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/sane/api.rb', line 32 def to_hash; { :name => self[:name], :title => self[:title], :desc => self[:desc], :type => self[:type], :unit => self[:unit], :size => self[:size], :cap => self[:cap] } end |