Sha256: 21dc8ec39cfdb871a48a16e3eebe09866408d5c936c470b5e2abafa43b20a1a9

Contents?: true

Size: 329 Bytes

Versions: 50

Compression:

Stored size: 329 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]}' #{Helpers.title_attr(og)}>"
      end

    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
onebox-1.8.55 lib/onebox/engine/opengraph_image.rb
onebox-1.8.54 lib/onebox/engine/opengraph_image.rb
onebox-1.8.53 lib/onebox/engine/opengraph_image.rb
onebox-1.8.52 lib/onebox/engine/opengraph_image.rb
onebox-1.8.51 lib/onebox/engine/opengraph_image.rb
onebox-1.8.50 lib/onebox/engine/opengraph_image.rb
onebox-1.8.49 lib/onebox/engine/opengraph_image.rb
onebox-1.8.48 lib/onebox/engine/opengraph_image.rb
onebox-1.8.47 lib/onebox/engine/opengraph_image.rb
onebox-1.8.46 lib/onebox/engine/opengraph_image.rb
onebox-1.8.45 lib/onebox/engine/opengraph_image.rb
onebox-1.8.44 lib/onebox/engine/opengraph_image.rb
onebox-1.8.43 lib/onebox/engine/opengraph_image.rb
onebox-1.8.42 lib/onebox/engine/opengraph_image.rb
onebox-1.8.41 lib/onebox/engine/opengraph_image.rb
onebox-1.8.40 lib/onebox/engine/opengraph_image.rb
onebox-1.8.39 lib/onebox/engine/opengraph_image.rb
onebox-1.8.38 lib/onebox/engine/opengraph_image.rb
onebox-1.8.36 lib/onebox/engine/opengraph_image.rb
onebox-1.8.35 lib/onebox/engine/opengraph_image.rb