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.34 lib/onebox/engine/opengraph_image.rb
onebox-1.8.33 lib/onebox/engine/opengraph_image.rb
onebox-1.8.32 lib/onebox/engine/opengraph_image.rb
onebox-1.8.31 lib/onebox/engine/opengraph_image.rb
onebox-1.8.30 lib/onebox/engine/opengraph_image.rb
onebox-1.8.29 lib/onebox/engine/opengraph_image.rb
onebox-1.8.28 lib/onebox/engine/opengraph_image.rb
onebox-1.8.27 lib/onebox/engine/opengraph_image.rb
onebox-1.8.26 lib/onebox/engine/opengraph_image.rb
onebox-1.8.25 lib/onebox/engine/opengraph_image.rb
onebox-1.8.24 lib/onebox/engine/opengraph_image.rb
onebox-1.8.23 lib/onebox/engine/opengraph_image.rb
onebox-1.8.22 lib/onebox/engine/opengraph_image.rb
onebox-1.8.21 lib/onebox/engine/opengraph_image.rb
onebox-1.8.20 lib/onebox/engine/opengraph_image.rb
onebox-1.8.19 lib/onebox/engine/opengraph_image.rb
onebox-1.8.18 lib/onebox/engine/opengraph_image.rb
onebox-1.8.17 lib/onebox/engine/opengraph_image.rb
onebox-1.8.16 lib/onebox/engine/opengraph_image.rb
onebox-1.8.15 lib/onebox/engine/opengraph_image.rb