Class: Onebox::Engine::ImageOnebox

Inherits:
Object
  • Object
show all
Includes:
Onebox::Engine
Defined in:
lib/onebox/engine/image_onebox.rb

Instance Attribute Summary

Attributes included from Onebox::Engine

#cache, #timeout, #url

Instance Method Summary collapse

Methods included from Onebox::Engine

engines, included, #initialize, #placeholder_html

Instance Method Details

#to_htmlObject



8
9
10
# File 'lib/onebox/engine/image_onebox.rb', line 8

def to_html
  "<a href='#{@url}' target='_blank'><img src='#{@url}'></a>"
end