Sha256: 496baa1438748dc2e36f45bc0349f6ce168f73618455106fac0cc81310d127c0

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

module Onebox
  module Engine
    class VimeoOnebox
      include Engine
      include OpenGraph

      matches do
        http
        domain("vimeo")
        tld("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

1 entries across 1 versions & 1 rubygems

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