Sha256: ff73816443f6a55ebfd831a9eb9ae1a3357180c9d3206a789e4ef382ab0f6de0
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
module Onebox module Engine class FlickrOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/www\.flickr\.com\/photos\//) always_https def to_html og = get_opengraph "<img src='#{og[:image]}' width='#{og[:image_width]}' height='#{og[:image_height]}' #{Helpers.title_attr(og)}>" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.7.3 | lib/onebox/engine/flickr_onebox.rb |