Class: LinkThumbnailer::Scrapers::Default::Description

Inherits:
Base
  • Object
show all
Defined in:
lib/link_thumbnailer/scrapers/default/description.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



8
9
10
11
12
# File 'lib/link_thumbnailer/scrapers/default/description.rb', line 8

def value
  return model_from_meta.to_s if model_from_meta
  return model_from_body.to_s if model_from_body
  nil
end