Class: URLCanonicalize::Result
- Inherits:
-
Object
- Object
- URLCanonicalize::Result
- Defined in:
- lib/url_canonicalize/result.rb
Overview
The outcome of one canonicalization: the canonical URL, the response that confirmed it, and the chain of hops that led there. Immutable
Defined Under Namespace
Classes: Hop
Instance Attribute Summary collapse
-
#chain ⇒ Object
readonly
Returns the value of attribute chain.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#chain ⇒ Object (readonly)
Returns the value of attribute chain.
11 12 13 |
# File 'lib/url_canonicalize/result.rb', line 11 def chain @chain end |
#html ⇒ Object (readonly)
Returns the value of attribute html.
11 12 13 |
# File 'lib/url_canonicalize/result.rb', line 11 def html @html end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/url_canonicalize/result.rb', line 11 def response @response end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
11 12 13 |
# File 'lib/url_canonicalize/result.rb', line 11 def source @source end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
11 12 13 |
# File 'lib/url_canonicalize/result.rb', line 11 def url @url end |
Instance Method Details
#xml ⇒ Object
13 14 15 |
# File 'lib/url_canonicalize/result.rb', line 13 def xml Nokogiri::XML(response.body) end |