Sha256: 174e7199038b39c871e9895d964f27dada1fa8640e816cb5aac51c56a72b985b

Contents?: true

Size: 251 Bytes

Versions: 9

Compression:

Stored size: 251 Bytes

Contents

module Onebox
  module Engine
    module OpengraphImage

      def to_html
        og = get_opengraph
        "<img src='#{og.image}' width='#{og.image_width}' height='#{og.image_height}' class='onebox' #{og.title_attr}>"
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
onebox-1.8.89 lib/onebox/engine/opengraph_image.rb
onebox-1.8.88 lib/onebox/engine/opengraph_image.rb
onebox-1.8.87 lib/onebox/engine/opengraph_image.rb
onebox-1.8.86 lib/onebox/engine/opengraph_image.rb
onebox-1.8.85 lib/onebox/engine/opengraph_image.rb
onebox-1.8.84 lib/onebox/engine/opengraph_image.rb
onebox-1.8.83 lib/onebox/engine/opengraph_image.rb
onebox-1.8.82 lib/onebox/engine/opengraph_image.rb
onebox-1.8.80 lib/onebox/engine/opengraph_image.rb