Class: Sane::API::Parameters

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/sane/api.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



48
49
50
51
52
53
54
55
56
57
# File 'lib/sane/api.rb', line 48

def to_hash
  {
    :format => self[:format],
    :last_frame => self[:last_frame],
    :bytes_per_line => self[:bytes_per_line],
    :pixels_per_line => self[:pixels_per_line],
    :lines => self[:lines],
    :depth => self[:depth]
  }
end