Sha256: e08839f5a533dc0af97b3f474aabea8a6d3ba2bad0b145213c57e71d08a1137f

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

module Onebox
  module Engine
    class ViddlerOnebox
      include Engine
      include OpenGraph

      matches do
        # /^https?:\/\/(?:www\.)?viddler\.com\/.+$/
        find "viddler.com"
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description,
          video: raw.metadata[:video].first[:_value]
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onebox-1.0.1 lib/onebox/engine/viddler_onebox.rb
onebox-1.0.0 lib/onebox/engine/viddler_onebox.rb