Sha256: 50024d65998598fd44ffd7d296abb8cc02446051a3fe387f5bfc985fe9b9b475

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
onebox-2.2.19 lib/onebox/engine/opengraph_image.rb
onebox-2.2.18 lib/onebox/engine/opengraph_image.rb
onebox-2.2.17 lib/onebox/engine/opengraph_image.rb
onebox-2.2.16 lib/onebox/engine/opengraph_image.rb
onebox-2.2.15 lib/onebox/engine/opengraph_image.rb
onebox-2.2.14 lib/onebox/engine/opengraph_image.rb
onebox-2.2.13 lib/onebox/engine/opengraph_image.rb