Class: URLCanonicalize::Response::Success
- Defined in:
- lib/url_canonicalize/response.rb
Overview
Add HTML to a successful response
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Attributes inherited from Generic
Instance Method Summary collapse
Instance Attribute Details
#html ⇒ Object (readonly)
Returns the value of attribute html.
21 22 23 |
# File 'lib/url_canonicalize/response.rb', line 21 def html @html end |
#response ⇒ Object (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
#xml ⇒ Object
23 24 25 |
# File 'lib/url_canonicalize/response.rb', line 23 def xml @xml ||= Nokogiri::XML response.body end |