Sha256: 81567570c13794c82843e008c3e7d88f938915ea11545b2dc82c39629ed7ac17

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

module Onebox
  module Engine
    class CoubOnebox
      include Engine
      include StandardEmbed

      matches_regexp(/^https?:\/\/coub\.com\/view\//)
      always_https

      def placeholder_html
        oembed = get_oembed
        "<img src='#{oembed.thumbnail_url}' height='#{oembed.thumbnail_height}' width='#{oembed.thumbnail_width}' #{oembed.title_attr}>"
      end

      def to_html
        get_oembed.html
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onebox-1.8.81 lib/onebox/engine/coub_onebox.rb