Sha256: 355c40708485a8893b0f5bd0b5c1f740605cb1d3326280086ed5320a827b9140
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 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 def html get(:html, nil, false) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.8.81 | lib/onebox/oembed.rb |