Sha256: 2631f3d2dd374618ce890361e70138c61b104350953d49987e8fae7c136e373e

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

class LinkOracle
  module Extractor
    class OG < Base
      def type
        :og
      end

      def title
        get_content("//meta[@property='og:title']")
      end

      def image
        get_content("//meta[@property='og:image']")
      end

      def description
        get_content("//meta[@property='og:description']")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
link_oracle-0.0.8 lib/link_oracle/extractor/og.rb
link_oracle-0.0.7 lib/link_oracle/extractor/og.rb
link_oracle-0.0.6 lib/link_oracle/extractor/og.rb