Sha256: 16bd3a4af7fea61f6420e14f018bc76ecc072767fa6078a3c3400d44500d24aa
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
module Onebox module Engine class CollegeHumorOnebox include Engine include OpenGraph matches do # /^https?:\/\/www.collegehumor.com\/video\/.*$/ find "collegehumor.com" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.0.1 | lib/onebox/engine/college_humor_onebox.rb |
onebox-1.0.0 | lib/onebox/engine/college_humor_onebox.rb |