Class: LinkThumbnailer::ImageComparator

Inherits:
Object
  • Object
show all
Defined in:
lib/link_thumbnailer/image_comparator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image) ⇒ ImageComparator

Returns a new instance of ImageComparator.



9
10
11
# File 'lib/link_thumbnailer/image_comparator.rb', line 9

def initialize(image)
  @image = image
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



7
8
9
# File 'lib/link_thumbnailer/image_comparator.rb', line 7

def image
  @image
end

Instance Method Details

#call(other) ⇒ Object



13
14
15
# File 'lib/link_thumbnailer/image_comparator.rb', line 13

def call(other)
  size_comparator.call(other)
end