module Onebox::Engine::HTML
Private Instance Methods
body_cacher()
click to toggle source
# File lib/onebox/engine/html.rb, line 17 def body_cacher self.options&.[](:body_cacher) end
html?()
click to toggle source
# File lib/onebox/engine/html.rb, line 21 def html? raw.respond_to(:css) end
http_params()
click to toggle source
Overwrite for any custom headers
# File lib/onebox/engine/html.rb, line 9 def http_params {} end
raw()
click to toggle source
# File lib/onebox/engine/html.rb, line 13 def raw @raw ||= Onebox::Helpers.fetch_html_doc(url, http_params, body_cacher) end