Class: Typhoeus::Response
- Inherits:
-
Object
- Object
- Typhoeus::Response
- Defined in:
- lib/cms_scanner/typhoeus/response.rb
Overview
Custom Response class
Instance Method Summary collapse
-
#html ⇒ Nokogiri::HTML
The response’s body parsed by Nokogiri.
Instance Method Details
#html ⇒ Nokogiri::HTML
Returns The response’s body parsed by Nokogiri.
5 6 7 |
# File 'lib/cms_scanner/typhoeus/response.rb', line 5 def html @html ||= Nokogiri::HTML(body.encode('UTF-8', invalid: :replace, undef: :replace)) end |