Sha256: ceeb466621d8740c807b052d788d4da8eb6c8f8efbb5e6cfff288cebf47eb346
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module Onebox module Engine class DotsubOnebox include Engine include OpenGraph matches do http maybe("www.") domain("dotsub") has(".com").maybe("/") end private def data { url: @url, title: raw.title, image: raw.images.first, description: raw.description, video: raw.metadata[:video].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/dotsub_onebox.rb |