Class: Mindee::Image::ExtractedImages

Inherits:
Array
  • Object
show all
Defined in:
lib/mindee/image/extracted_images.rb

Overview

List of extracted images.

Instance Method Summary collapse

Instance Method Details

#save_all_to_disk(output_path) ⇒ Object

Save all extracted images to disk.

Parameters:

  • output_path (String, Pathname)

    Directory path to save the extracted images to.



13
14
15
16
17
# File 'lib/mindee/image/extracted_images.rb', line 13

def save_all_to_disk(output_path)
  each do |image|
    image.write_to_file(File.join(output_path.to_s, image.filename))
  end
end