Sha256: 9dfe7b43e3e4bb47e3192cae9f5763cdf58a16b746f0750bc8c1048156cbe684

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

module Onebox
  module Engine
    class YfrogOnebox
      include Engine
      include OpenGraph

      matches do
        # /^https?:\/\/(?:www\.)?yfrog\.(com|ru|com\.tr|it|fr|co\.il|co\.uk|com\.pl|pl|eu|us)\/[a-zA-Z0-9]+/
        find "yfrog.com"
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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