Sha256: 8dd0599431133e3cdaeeb249d30ad6d784cf7d9e0d4cb51461ad22a102993962
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
module Onebox module Engine class AudioboomOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/audioboom\.com\/posts\/\d+/) always_https def placeholder_html oembed = get_oembed # we want the image to have the same dimensions as the embedded html <<-HTML <img src="#{oembed[:thumbnail_url]}" style="max-width: #{oembed[:width]}px; max-height: #{oembed[:height]}px;"> HTML end def to_html oembed = get_oembed oembed[:html] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.6.2 | lib/onebox/engine/audioboom_onebox.rb |