Sha256: 38d9d385097220cd6047411d7f97287aa4aac5d49b5440f72f0a58b1da6e619a

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

module Onebox
  module Engine
    class Revision3Onebox
      include Engine
      include OpenGraph

      matches do
        # /^http\:\/\/(.*\.)?revision3\.com\/.*$/
        find "revision3.com"
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description,
          video: raw.metadata[:video].first[:_value]
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onebox-1.0.1 lib/onebox/engine/revision3_onebox.rb
onebox-1.0.0 lib/onebox/engine/revision3_onebox.rb