Sha256: 53032464a8a3cbd1e69fd15277413af056f6d9484a95ca05db6c7bb47d32c5cd

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

module Onebox
  module Engine
    class SlideshareOnebox
      include Engine
      include OpenGraph

      matches do
        http
        maybe("www.")
        domain("slideshare")
        tld("net")
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onebox-1.1.0 lib/onebox/engine/slideshare_onebox.rb