Sha256: 921cf8fae45d657ce8ef18dba5327f8fb9bf921362ef46b9c1af0e590f77a184
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
module Onebox module Engine class FlickrOnebox include Engine include OpenGraph matches do # /^https?\:\/\/.*\.flickr\.com\/.*$/ find "flickr.com" end private def data { url: @url, title: raw.title, image: raw.images.first, description: raw.description } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.0.1 | lib/onebox/engine/flickr_onebox.rb |
onebox-1.0.0 | lib/onebox/engine/flickr_onebox.rb |