Class: LinkOracle::Extractor::OG

Inherits:
Base
  • Object
show all
Defined in:
lib/link_oracle/extractor/og.rb

Instance Attribute Summary

Attributes inherited from Base

#link_data, #parsed_body

Instance Method Summary collapse

Methods inherited from Base

#get_content, #initialize, #perform

Constructor Details

This class inherits a constructor from LinkOracle::Extractor::Base

Instance Method Details

#descriptionObject



16
17
18
# File 'lib/link_oracle/extractor/og.rb', line 16

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

#imageObject



12
13
14
# File 'lib/link_oracle/extractor/og.rb', line 12

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

#titleObject



8
9
10
# File 'lib/link_oracle/extractor/og.rb', line 8

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

#typeObject



4
5
6
# File 'lib/link_oracle/extractor/og.rb', line 4

def type
  :og
end