Class: LinkThumbnailer::Scrapers::Default::Images
- 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
#value ⇒ Object
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 |