Sha256: 27a6f838ad874a68f59474c09c47bf74eac26de9d080c9dab7e8b273b321845e

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

module Onebox
  module Engine
    class NFBOnebox
      include Engine
      include OpenGraph

      matches do
        # /^https?:\/\/(?:www\.)?nfb\.ca\/film\/[-\w]+\/?/
        find "nfb.ca"
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          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/nfb_onebox.rb
onebox-1.0.0 lib/onebox/engine/nfb_onebox.rb