Sha256: d55ee357e5ab8a5e6a2f6874d12f786b1cabb50dd8a20ddd5f50e7fc8186c561
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
module Onebox module Engine class FunnyOrDieOnebox include Engine include OpenGraph matches do # /^https?\:\/\/(www\.)?funnyordie\.com\/videos\/.*$/$/ find "funnyordie.com" end private def data { url: @url, title: raw.title, image: raw.images.first, description: raw.description, video: raw.metadata[:video].first[:url].first[:_value] } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.0.1 | lib/onebox/engine/funny_or_die_onebox.rb |
onebox-1.0.0 | lib/onebox/engine/funny_or_die_onebox.rb |