Sha256: 28fe824c659073689ff4745630c4bc5185c1c40ad4417423e3e23f4464456095
Contents?: true
Size: 467 Bytes
Versions: 5
Compression:
Stored size: 467 Bytes
Contents
module Onebox module Engine class VimeoOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/(www\.)?vimeo\.com\/\d+(\/[^\/]+)?$/) always_https def placeholder_html oembed = get_oembed "<img src='#{oembed.thumbnail_url}' width='#{oembed.thumbnail_width}' height='#{oembed.thumbnail_height}' #{oembed.title_attr}>" end def to_html get_oembed.html end end end end
Version data entries
5 entries across 5 versions & 1 rubygems