Class: LinkThumbnailer::Scrapers::Opengraph::Image

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

Defined Under Namespace

Classes: Base, Height, Url, Width

Instance Attribute Summary

Attributes inherited from Base

#attribute_name, #config, #document, #website

Instance Method Summary collapse

Methods inherited from Base

#applicable?

Methods inherited from Base

#applicable?, #call, #initialize

Constructor Details

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

Instance Method Details

#valueObject



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

def value
  ::LinkThumbnailer::Scrapers::Opengraph::Image::Base.new(document, website).value +
  ::LinkThumbnailer::Scrapers::Opengraph::Image::Url.new(document, website).value
end