Sha256: 2496b16b3bd74eea0693ab786283eb791dc7f7cade30f6df8134911e9a6dff48
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
module Onebox module Engine class FunnyOrDieOnebox include Engine include OpenGraph matches do http maybe("www.") domain("funnyordie") has(".com").maybe("/videos").maybe("/") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | lib/onebox/engine/funny_or_die_onebox.rb |