Sha256: 262886eafec26f4b81d1c9b551fda43755a428832c5fd7e79747ff8608408a11

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

module Onebox
  module Engine
    class QikOnebox
      include Engine
      include HTML

      matches do
        http
        domain("qik")
        tld("com")
        with("/video")
      end

      private

      def data
        {
          url: @url,
          title: raw.css(".info h2").inner_text,
          image: raw.css(".userphoto").first["src"]
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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