Sha256: 2920b1f7faa496a704eec3edb0d2a1cba9b888c8df1c2652e63e586b1dffafce
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
module Onebox module Engine class TedOnebox include Engine include OpenGraph matches do # /^https?\:\/\/(www\.)?ted\.com\/talks\/.*$/ find "ted.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/ted_onebox.rb |
onebox-1.0.0 | lib/onebox/engine/ted_onebox.rb |