Sha256: baacbae67cd62d16b87a81b913258ce928e1e07a10637c440661a5be241cd377

Contents?: true

Size: 396 Bytes

Versions: 25

Compression:

Stored size: 396 Bytes

Contents

require 'link_thumbnailer/scrapers/default/base'

module LinkThumbnailer
  module Scrapers
    module Default
      class Title < ::LinkThumbnailer::Scrapers::Default::Base

        def value
          model.to_s
        end

        private

        def model
          modelize(node)
        end

        def node
          document.css(attribute_name)
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
link_thumbnailer-3.3.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.3.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.2.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.2.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.1.2 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.1.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.1.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.0.3 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.0.2 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.0.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-3.0.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.6.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.6.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.5.2 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.5.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.5.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.4.0 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.3.2 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.3.1 lib/link_thumbnailer/scrapers/default/title.rb
link_thumbnailer-2.3.0 lib/link_thumbnailer/scrapers/default/title.rb