Sha256: 03c56724c5949e2f29057a19d4b276604c4209f075a18181fc60bf8da6843d7c

Contents?: true

Size: 344 Bytes

Versions: 23

Compression:

Stored size: 344 Bytes

Contents

module Onebox
  module Engine
    module OpengraphImage

      def to_html
        og = get_opengraph
        escaped_src = ::Onebox::Helpers.normalize_url_for_output(og[:image])
        "<img src='#{escaped_src}' width='#{og[:image_width]}' height='#{og[:image_height]}' class='onebox' #{Helpers.title_attr(og)}>"
      end

    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
onebox-1.8.79 lib/onebox/engine/opengraph_image.rb
onebox-1.8.78 lib/onebox/engine/opengraph_image.rb
onebox-1.8.77 lib/onebox/engine/opengraph_image.rb
onebox-1.8.76 lib/onebox/engine/opengraph_image.rb
onebox-1.8.75 lib/onebox/engine/opengraph_image.rb
onebox-1.8.74 lib/onebox/engine/opengraph_image.rb
onebox-1.8.73 lib/onebox/engine/opengraph_image.rb
onebox-1.8.72 lib/onebox/engine/opengraph_image.rb
onebox-1.8.71 lib/onebox/engine/opengraph_image.rb
onebox-1.8.70 lib/onebox/engine/opengraph_image.rb
onebox-1.8.69 lib/onebox/engine/opengraph_image.rb
onebox-1.8.68 lib/onebox/engine/opengraph_image.rb
onebox-1.8.67 lib/onebox/engine/opengraph_image.rb
onebox-1.8.66 lib/onebox/engine/opengraph_image.rb
onebox-1.8.65 lib/onebox/engine/opengraph_image.rb
onebox-1.8.64 lib/onebox/engine/opengraph_image.rb
onebox-1.8.63 lib/onebox/engine/opengraph_image.rb
onebox-1.8.62 lib/onebox/engine/opengraph_image.rb
onebox-1.8.61 lib/onebox/engine/opengraph_image.rb
onebox-1.8.60 lib/onebox/engine/opengraph_image.rb