lib/sqed/extractor.rb in sqed-0.1.0 vs lib/sqed/extractor.rb in sqed-0.1.1

- old
+ new

@@ -1,6 +1,6 @@ -require 'RMagick' +require 'rmagick' # An Extractor takes Boundries object and a metadata_map pattern and returns a Sqed::Result # class Sqed::Extractor @@ -15,10 +15,10 @@ attr_accessor :image def initialize(boundaries: boundaries, metadata_map: metadata_map, image: image) raise 'boundaries not provided or provided boundary is not a Sqed::Boundaries' if boundaries.nil? || !boundaries.class == Sqed::Boundaries raise 'metadata_map not provided or metadata_map not a Hash' if metadata_map.nil? || !metadata_map.class == Hash - raise 'image not provided' if image.nil? || !image.class == Magick::Image + raise 'image not provided' if image.nil? || !image.class.name == 'Magick::Image' @metadata_map = metadata_map @boundaries = boundaries @image = image end