module Onebox
module Engine
class GfycatOnebox
include Engine
include StandardEmbed
matches_regexp(/^https?:\/\/gfycat\.com\//)
def to_html
oembed = get_oembed
src = Nokogiri::HTML::fragment(oembed[:html]).at_css("iframe")["src"]
<<-HTML
HTML
end
def placeholder_html
opengraph = get_opengraph
<<-HTML
HTML
end
end
end
end