Class: LinkOracle::Extractor::OG
- Inherits:
-
Base
- Object
- Base
- LinkOracle::Extractor::OG
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
Instance Method Details
#description ⇒ Object
16
17
18
|
# File 'lib/link_oracle/extractor/og.rb', line 16
def description
get_content("/html/head/meta[@property='og:description']")
end
|
#image ⇒ Object
12
13
14
|
# File 'lib/link_oracle/extractor/og.rb', line 12
def image
get_content("/html/head/meta[@property='og:image']")
end
|
#title ⇒ Object
8
9
10
|
# File 'lib/link_oracle/extractor/og.rb', line 8
def title
get_content("/html/head/meta[@property='og:title']")
end
|
#type ⇒ Object
4
5
6
|
# File 'lib/link_oracle/extractor/og.rb', line 4
def type
:og
end
|