Sha256: 4fadfb55439b3eb0cb8cbb5abeb85a1d215469d175423f8db100240848c82ee0
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module Onebox module Engine class ItunesOnebox include Engine include OpenGraph matches do # matcher /^https?:\/\/itunes.apple.com\/.+$/ http domain("itunes") has(".") domain("apple") tld("com") end private def data { url: @url, title: raw.title, image: raw.images.first, description: raw.description, } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | lib/onebox/engine/itunes_onebox.rb |