Sha256: 3ea5205ef44da9909a5d138e3953b8e222a7ddee3dc147452819d9653e2bde95
Contents?: true
Size: 385 Bytes
Versions: 9
Compression:
Stored size: 385 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
9 entries across 9 versions & 1 rubygems