Class: Widgetify::OembedParser

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

Instance Method Summary collapse

Constructor Details

#initialize(html_doc, options = {}) ⇒ OembedParser

Returns a new instance of OembedParser.



26
27
28
29
30
31
32
# File 'lib/parser/oembed_parser.rb', line 26

def initialize(html_doc, options = {})
  super(html_doc)
  @html_doc = html_doc
  @options = options
  @options[:format] = 'json' if !@options[:format]
  oembed_parse
end