Sha256: a0830e411adeb691791f18497ea6066f26e8ade7f60234f2201d3107e651f16f
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
module Onebox module Engine class YfrogOnebox include Engine include OpenGraph matches do http maybe("www.") maybe("twitter.") domain("yfrog") either(".com", ".ru", ".tr", ".it", ".fr", ".co", ".uk", ".pl", ".eu", ".us") 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/yfrog_onebox.rb |