Sha256: 361ffca9683ae760bb3bdf2a5622a2de0034d144e560059e5ec946030fb93569
Contents?: true
Size: 466 Bytes
Versions: 4
Compression:
Stored size: 466 Bytes
Contents
module Onebox module Engine class CoubOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/coub\.com\/view\//) always_https def placeholder_html oembed = get_oembed "<img src='#{oembed[:thumbnail_url]}' height='#{oembed[:thumbnail_height]}' width='#{oembed[:thumbnail_width]}' #{Helpers.title_attr(oembed)}>" end def to_html get_oembed[:html] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.7.3 | lib/onebox/engine/coub_onebox.rb |
onebox-1.7.2 | lib/onebox/engine/coub_onebox.rb |
onebox-1.7.1 | lib/onebox/engine/coub_onebox.rb |
onebox-1.7.0 | lib/onebox/engine/coub_onebox.rb |