Sha256: 0ec471e14df767c699784e9d11e5b981a3018c5d005a338b510c92ee6b964d41

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

module Onebox
  module Engine
    class BliptvOnebox
      include Engine
      include OpenGraph

      matches do
        http
        maybe("www.")
        domain("blip")
        has(".tv").maybe("/")
      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

1 entries across 1 versions & 1 rubygems

Version Path
onebox-1.1.0 lib/onebox/engine/bliptv_onebox.rb