Class: LinkThumbnailer::ImageComparators::Base

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

Direct Known Subclasses

Size

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image) ⇒ Base

Returns a new instance of Base.



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

def initialize(image)
  @image = image
end

Instance Attribute Details

#imageObject (readonly)

Returns the value of attribute image.



5
6
7
# File 'lib/link_thumbnailer/image_comparators/base.rb', line 5

def image
  @image
end

Instance Method Details

#callObject



11
12
13
# File 'lib/link_thumbnailer/image_comparators/base.rb', line 11

def call
  fail NotImplementedError
end