Class: LinkThumbnailer::Scrapers::Default::Images

Inherits:
Base
  • Object
show all
Defined in:
lib/link_thumbnailer/scrapers/default/images.rb

Instance Attribute Summary

Attributes inherited from Base

#attribute_name, #config, #document, #website

Instance Method Summary collapse

Methods inherited from Base

#applicable?, #call, #initialize

Constructor Details

This class inherits a constructor from LinkThumbnailer::Scrapers::Base

Instance Method Details

#valueObject



9
10
11
# File 'lib/link_thumbnailer/scrapers/default/images.rb', line 9

def value
  abs_urls.each_with_index.take_while { |_, i| i < config.image_limit }.map { |e| modelize(e.first) }
end