Sha256: 2af3111e83503f72d13ca4b292f2e2ebace2cb70105adb1e0e037c794687caf2
Contents?: true
Size: 300 Bytes
Versions: 1
Compression:
Stored size: 300 Bytes
Contents
module Onebox class Oembed < OpenGraph def initialize(response) @data = Onebox::Helpers.symbolize_keys(::MultiJson.load(response)) # never use oembed from WordPress 4.4 (it's broken) data.delete(:html) if data[:html] && data[:html]["wp-embedded-content"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.8.80 | lib/onebox/oembed.rb |