Class: LinkThumbnailer::Scrapers::Opengraph::Images

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

Instance Attribute Summary

Attributes inherited from Base

#attribute_name, #config, #document, #website

Instance Method Summary collapse

Methods inherited from Base

#applicable?, #value

Methods inherited from Base

#applicable?, #initialize, #value

Constructor Details

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

Instance Method Details

#call(attribute_name) ⇒ Object



11
12
13
# File 'lib/link_thumbnailer/scrapers/opengraph/images.rb', line 11

def call(attribute_name)
  ::LinkThumbnailer::Scrapers::Opengraph::Image.new(document, website).call('image')
end