Class: Widgetify::OpenGraphParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/parser/open_graph_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(html_doc) ⇒ OpenGraphParser

Returns a new instance of OpenGraphParser.



11
12
13
14
15
16
# File 'lib/parser/open_graph_parser.rb', line 11

def initialize(html_doc)
  super(html_doc)
  @html_doc = html_doc
  @key_arr = ['og:image','og:video','og:audio']
  open_graph_parser
end