Class: URLCanonicalize::Response::Success

Inherits:
Generic
  • Object
show all
Defined in:
lib/url_canonicalize/response.rb

Overview

Add HTML to a successful response

Instance Attribute Summary collapse

Attributes inherited from Generic

#url

Instance Method Summary collapse

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html.



21
22
23
# File 'lib/url_canonicalize/response.rb', line 21

def html
  @html
end

#responseObject (readonly)

Returns the value of attribute response.



21
22
23
# File 'lib/url_canonicalize/response.rb', line 21

def response
  @response
end

Instance Method Details

#xmlObject



23
24
25
# File 'lib/url_canonicalize/response.rb', line 23

def xml
  @xml ||= Nokogiri::XML response.body
end