Sha256: b1cbf939287734b3a400b9348b62170dd1a3cc00291029b2eb6f6c4f47a02e75
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module Onebox module Engine class NFBOnebox include Engine include OpenGraph matches do http maybe("www.") domain("nfb") tld("ca") with("/film") end private def data { url: @url, title: raw.title, 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/nfb_onebox.rb |