Sha256: eb3ca02457405fe6cf7d23cdffc65407ef2c19e4cf3582f324a89dbc58964576
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
module Onebox module Engine class FiveHundredPxOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/500px\.com\/photo\/\d+\//) always_https def to_html og = get_opengraph "<img src='#{og.image}' width='#{og.image_width}' height='#{og.image_height}' class='onebox' #{og.title_attr}>" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.8.81 | lib/onebox/engine/five_hundred_px_onebox.rb |