class Onebox::Engine::SketchFabOnebox
Public Instance Methods
placeholder_html()
click to toggle source
# File lib/onebox/engine/sketchfab_onebox.rb, line 29 def placeholder_html "<img src='#{get_opengraph.image}'>" end
to_html()
click to toggle source
# File lib/onebox/engine/sketchfab_onebox.rb, line 13 def to_html og = get_opengraph src = og.video_url.gsub("autostart=1", "") <<-HTML <iframe src="#{src}" width="#{og.video_width}" height="#{og.video_height}" scrolling="no" frameborder="0" allowfullscreen ></iframe> HTML end