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

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

Overview

Handles ‘og:image:width` attributes.

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



77
78
79
# File 'lib/link_thumbnailer/scrapers/opengraph/image.rb', line 77

def value
  node.attributes['content'].to_s if node
end