Sha256: fb0961898abd7ccda46e80d49b11733ffa5a93e3befaeac4f7579e0e517fa240

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

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

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
link_oracle-0.0.5 lib/link_oracle/extractor/og.rb
link_oracle-0.0.4 lib/link_oracle/extractor/og.rb
link_oracle-0.0.3 lib/link_oracle/extractor/og.rb
link_oracle-0.0.2 lib/link_oracle/extractor/og.rb
link_oracle-0.0.1 lib/link_oracle/extractor/og.rb