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