class Onebox::Engine::GiphyOnebox
Public Instance Methods
to_html()
click to toggle source
# File lib/onebox/engine/giphy_onebox.rb, line 12 def to_html oembed = get_oembed <<-HTML <a href="#{oembed.url}" target="_blank" rel="noopener" class="onebox"> <img src="#{oembed.url}" width="#{oembed.width}" height="#{oembed.height}" #{oembed.title_attr}> </a> HTML end