class URLCanonicalize::Response::Success
Add HTML to a successful response
Attributes
html[R]
response[R]
Public Class Methods
new(url, response, html)
click to toggle source
Calls superclass method
URLCanonicalize::Response::Generic::new
# File lib/url_canonicalize/response.rb, line 28 def initialize(url, response, html) @response = response @html = html super url end
Public Instance Methods
xml()
click to toggle source
# File lib/url_canonicalize/response.rb, line 22 def xml @xml ||= Nokogiri::XML response.body end