class Onebox::Engine::FiveHundredPxOnebox

Public Instance Methods

to_html() click to toggle source
# File lib/onebox/engine/five_hundred_px_onebox.rb, line 12
def to_html
  og = get_opengraph
  "<img src='#{og.image}' width='#{og.image_width}' height='#{og.image_height}' class='onebox' #{og.title_attr}>"
end